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
In reply to Re: Checking for existing filename before renaming file
by Tomte
in thread Checking for existing filename before renaming file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |