Just another Perl shrine | |
PerlMonks |
Re: Replace a pattern in each fileby RMGir (Prior) |
on Nov 01, 2013 at 12:16 UTC ( [id://1060752]=note: print w/replies, xml ) | Need Help?? |
The problem is that you're not doing the search correctly.
You wrote: but the correct syntax is just without the trailing ' $_' - the syntax of s/// is actually with the $string being acted on defaulting to $_. Putting $_ after the expression makes no sense to perl... Mike
In Section
Seekers of Perl Wisdom
|
|