On Sat, 27 Oct 2001, Brett W. McCoy wrote: > On Sat, 27 Oct 2001, David Gilden wrote: > > > cold:~/cgi$ perl -pie 's/;"\);/"\);/ ' * > > Can't open perl script "s/;"\);/"\);/ ": No such file or directory > > Try this > > perl -pi -e 's/;"\);/"\);/g' * > > Separate the -e. You might also want /g at the end of the substitution, > so it doesn't quit on the first match.
I should have mentioned futher the reason you need to separate the -e is because -i expects an optional argument, which is an extension it adds to the file to make a backup copy. In your case, it would have added 'e' to the files you were trying to edit in place, since it is looking at the 'e' as an argument to -i. See the perlrun document for more details. -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ QOTD: Y'know how s'm people treat th'r body like a TEMPLE? Well, I treat mine like 'n AMUSEMENT PARK... S'great... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]