c:\@Work\Perl\monks>perl -wMstrict -le "my %hash = ('$1' => 'oops', 'abc' => 'ok'); ;; 'abc' =~ m{ (abc) }xms; print qq{captured '$1'}; ;; print $hash{'$1'}; " captured 'abc' oops
Give a man a fish: <%-(-(-(-<
In reply to Re^3: In place search and replace with a hash
by AnomalousMonk
in thread In place search and replace with a hash
by hkates
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |