![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: Substituting Variables while reading text fileby Laurent_R (Canon) |
on Aug 05, 2014 at 18:52 UTC ( #1096337=note: print w/replies, xml ) | Need Help?? |
The problem is probably that you are using a bare word instead of a string. Try changing:
to and it should work. My quick test with a Perl one-liner under Unix: My understanding is that this is closer to what the OP wanted than s///, but I may of course be wrong.
In Section
Seekers of Perl Wisdom
|
|