http://www.perlmonks.org?node_id=1060682


in reply to Re: change files names bug
in thread change files names bug

The file exist and the scrip actually changes the name correctly, but I dont understand why, the scrip try to change the name again and of course, because it just changed the name of the file, the file does not exit any more. However the validation that you propose

 if ( -e $file )

allows the script finish the job, thank you