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

the script run into endless loop once we enter the while loop and no substitution is being done

Replies are listed 'Best First'.
Re^3: in place editing a list of files
by ysth (Canon) on Jan 09, 2007 at 04:27 UTC
    I can only suggest you run it under the debugger, examining all variables as you go and seeing where things go differently than you expect. Alternatively, rewrite to not use the empty <> operator and explicitly do every open, rename, print, and close, checking for errors after each one.