in reply to Re: in place editing a list of files
in thread in place editing a list of files

ysth, you're correct, that it works fine if no errors occur.

But as soon as the file "./edit" doesn't exist, or doesn't have the correct permissions, you'll get a cryptic:

readline() on closed filehandle FL at C:\Documents and Settings\liverp +ole\edit.pl line 13.

or something similar.  What's even worse is that, at least on my Windows box, the program doesn't terminate, forcing you to ^C to get out of it.

That's why I was suggesting the error-checking when opening files.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/