in reply to Checking for existing filename before renaming file
should readif (! -e $oldfile)
andif (! -e $_)
should read print "Could not rename $oldfile to ${_}, because ${_}print "Could not rename $_ because $oldfile name already exists and ca +n not be overwritten\n";
this was easy to debug, did you try to find out?
it helps to look at the variable-values...
regards,
tomte
|
|---|