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

Re: ./method

Thread Previous | Thread Next
From:
Larry Wall
Date:
May 15, 2005 17:51
Subject:
Re: ./method
Message ID:
20050516005102.GB26184@wall.org
On Sun, May 15, 2005 at 08:30:06PM -0400, Rob Kinyon wrote:
: On 5/15/05, Juerd <juerd@convolution.nl> wrote:
: > Brad Bowman skribis 2005-05-16  9:56 (+1000):
: > > Would it conflict with range + pattern?  Or has that changed anyway?
: > 
: > No, "./" and "../" are prefix only, so they cannot clash with an infix
: > operator like "..".
: 
: How would
: 
:     print "Foo" while $self../method;
: 
: parse? What does the parser do when it sees "../"? I know what it will
: do when it sees that ../method terminates the condition. But, will it
: backtrack?

../ would only be recognized where a term is expected, so that would
parse as well (or as poorly) as:

    print "Foo" while $self .. /method;

Larry

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About