in reply to Move a file to another directory based on regex match

I would start by printing the values of $Infile and $Outdir so that you can be sure of what you are asking File::Copy to do. Also be sure that the destinations are not symbolic links to other devices. File::Copy is supposed to first attempt a rename, then fall back to a move. What are the characteristics of the actual things when this error happens?