in reply to
Best way to edit a file?
perl -i -pe 's/OLD/NEW/g' <file_name>
[download]
there are lot of unix utilities are there to do the same. ( sed, awk , so on )
hmmm ....let me think what did I said
Comment on
Re: Best way to edit a file?
Download
Code
In Section
Seekers of Perl Wisdom