![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: Special cases make special communityby JavaFan (Canon) |
on Feb 01, 2009 at 18:01 UTC ( #740559=note: print w/replies, xml ) | Need Help?? |
One special case of split you haven't mentioned yet is split in void (or scalar) context, which puts the result into @_.
Also, split with the empty pattern splits into separate characters. As for 'afterthought features' in modern regular expressions, since 5.10 we also have (*...) as 'new syntax'. Before 5.10, (* could not be valid (unless escaped). (+ is up for grabs for the next wave of new features. ;-)
In Section
Meditations
|
|