Do you know where your variables are? | |
PerlMonks |
Re^3: Perl oddities (s/// doesn't DWIM in map)by heptadecagram (Novice) |
on Mar 01, 2005 at 15:40 UTC ( [id://435480]=note: print w/replies, xml ) | Need Help?? |
True. I'd like to see a switch: my $modified = s/$pattern/$change_to/gr;Where /r stands for 'replaced', or somesuch.
In Section
Meditations
|
|