First option should be better, because it is faster to implement, and run
faster.
But open file using perl language and make changes using s operator, should be
faster too.
The best way to choose should be make a test using two methods (using time unix
command before ask perl script to verify t
On 3/27/07, Rodrigo Tavares <[EMAIL PROTECTED]> wrote:
What's the more fast ?
1) perl -pi -e 's/foo/bar/g' file.txt
2) open the file and make modifications
What happens when you time both programs? It may be that the answer
for me with my data on my hardware is different than the answer for