Perl Monk, Perl Meditation | |
PerlMonks |
Re: Unwanted interpolation in backquoted stringby coec (Chaplain) |
on May 04, 2004 at 06:46 UTC ( [id://350249]=note: print w/replies, xml ) | Need Help?? |
Something like
but the actual problem with the back quotes is that $2 should be escaped. (s/$2/\$2/) The reason is that you want awk to interpret $2, not Perl. CC Note that this is completely untested...
In Section
Seekers of Perl Wisdom
|
|