|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re^4: when $$s =~ m/\G.../gc is too verbose (for)by TimToady (Parson) |
| on Feb 03, 2006 at 14:10 UTC ( [id://527775]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
It's called "given" in Perl 6 (or in Perl6::Switch, if you want to play with 6ish topicalizers in Perl 5).
Perl 6 also has syntactic relief for the m/\G.../gc monstrosity as well. That turns into m:p/.../, where the :p tells it to start matching at the current position. (But generally you don't even need that since subrules in a grammar always anchor to the current position anyway.)
In Section
Meditations
|
|
||||||||||||||||||||||||