develooper Front page | perl.perl6.language | Postings from May 2005

Re: C<::> in rules

Thread Previous | Thread Next
Patrick R. Michaud
May 12, 2005 21:26
Re: C<::> in rules
Message ID:
On Thu, May 12, 2005 at 08:56:39PM -0700, Larry Wall wrote:
> On Thu, May 12, 2005 at 09:33:37AM -0500, Patrick R. Michaud wrote:
> : Also, A05 proposes incorrect alternatives to the above 
> : 
> :     /[:w[]foo bar]/    # null pattern illegal, use <null>
> :     /[:w()foo bar]/    # null capture illegal, and probably undesirable
> :     /[:w\bfoo bar]/    # not exactly the same as above
> : 
> I would just like to point out that you are misreading those.

Ouch, you're right!  I've been looking at patterns too long, I
guess -- thanks for the correction.  

> Speaking of which, it seems to me that :p and :c should allow an
> argument that says where to start relative to the current position.
> In other words, :p means :p(0) and :c means :c(0).  I could also see
> uses for :p(-1) and :p(+1).

Sounds good to me.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About