Front page | perl.perl6.language |
Postings from May 2005
Re: C<::> in rules
Thread Previous
|
Thread Next
From:
Patrick R. Michaud
Date:
May 12, 2005 21:26
Subject:
Re: C<::> in rules
Message ID:
20050513042654.GA9954@pmichaud.com
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.
Pm
Thread Previous
|
Thread Next