|Perl: the Markov chain saw|
One-liner: -i without .bak?by cryptoquip (Novice)
|on Jul 21, 2005 at 18:10 UTC||Need Help??|
cryptoquip has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Monks. A co-worker (running cygwin) needed a script to run a search and replace operation on a bunch of files in a directory. He knew I was learning Perl, so he asked me to help, and we came up with this:
From what I've read, I thought that -i would not create backup files if no extension was specified, but backup files is what he got. Mysterious, no? Why did this happen, and how could we have made it not happen?