Keep It Simple, Stupid | |
PerlMonks |
Re^2: regexp wizardry neededby Corion (Patriarch) |
on Jan 25, 2013 at 17:13 UTC ( [id://1015376]=note: print w/replies, xml ) | Need Help?? |
perlop says that /r is for non-destructive operation of a regular expression. You can simply replace that by introducing a temporary variable:
... can be replaced by
In your case, you will have to make sure your map block actually returns the intended value:
In Section
Seekers of Perl Wisdom
|
|