|
|
| "be consistent" | |
| PerlMonks |
Re^3: Array Filter and Lookaheadby moritz (Cardinal) |
| on Nov 21, 2012 at 06:38 UTC ( #1004851=note: print w/ replies, xml ) | Need Help?? |
|
Right, I forget about Perl 5's insane behavior about capture variables when a match failed. The correct way would be to use /.../ and $1 // '' or some variation thereof.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||