more useful options | |
PerlMonks |
Re: how to substitute a word in a file by perlby hdb (Monsignor) |
on Aug 31, 2013 at 13:36 UTC ( [id://1051730]=note: print w/replies, xml ) | Need Help?? |
And what exactly are you having problems with? Read the file line by line, do a global substitution of wood versus food, write into a temp file. Delete input and rename temp file to original name.
In Section
Seekers of Perl Wisdom
|
|