No such thing as a small change | |
PerlMonks |
Re: Replace text in fileby Laurent_R (Canon) |
on Apr 17, 2014 at 07:45 UTC ( [id://1082605]=note: print w/replies, xml ) | Need Help?? |
There are numerous ways to achieve what you want. For the substitution itself, the only thing that might be slightly beyond a pure beginner's knowledge, the first idea that comes to mind is to use the substitution operator, s///. You'll find detailed documentation on this in this chapter Regexp Quote Like Operators of the perlop document. Look in particular at the s/PATTERN/REPLACEMENT/msixpodualgcer sub-chapter and at the e option modifier.
In Section
Seekers of Perl Wisdom
|
|