Front page | perl.perl6.language |
Postings from December 2005
Match objects
Thread Next
From:
Luke Palmer
Date:
December 23, 2005 06:09
Subject:
Match objects
Message ID:
7ca3f0160512230609o4ee6d11t1698ac04c346d01e@mail.gmail.com
What sort of match object should this return, supposing that it didn't
infinite loop:
"x" ~~ / [ [ (x) ]* ]* /
Should $/[0][0] be "x", or should $/[0][0][0] be "x"? If it's the
latter, then when do new top-level elements get added?
/
[
[
{ say +$/[0][] } # is this always the same as
(x)
{ say +$/[0][] } # this?
]*
]*
/
Thanks,
Luke
Thread Next
-
Match objects
by Luke Palmer