|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Changing file contentsby rnahi (Curate) |
| on May 29, 2003 at 08:06 UTC ( #261509=note: print w/ replies, xml ) | Need Help?? |
|
This one liner
will change only one occurrence of the pattern, modify your file in place and save the old one with a ".bak" extension. To change every occurrence of the pattern, use
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||