in reply to Re^2: In place search and replace with a hash
in thread In place search and replace with a hash
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: <%-(-(-(-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: In place search and replace with a hash
by LanX (Saint) on Dec 28, 2014 at 02:59 UTC | |
by Athanasius (Archbishop) on Dec 28, 2014 at 03:29 UTC | |
by LanX (Saint) on Dec 28, 2014 at 03:42 UTC | |
by Athanasius (Archbishop) on Dec 28, 2014 at 08:26 UTC | |
by LanX (Saint) on Dec 28, 2014 at 13:27 UTC | |
by Anonymous Monk on Dec 28, 2014 at 08:51 UTC | |
|
Re^4: In place search and replace with a hash
by hkates (Novice) on Dec 28, 2014 at 03:11 UTC | |
by AnomalousMonk (Archbishop) on Dec 28, 2014 at 04:10 UTC |