in reply to Directory or file not found while using copy

all of the previous posts point you to the right direction: File::Copy accepts only a single file as argument. But cpan also provides a File::Copy::Recursive module which allows to copy whole directories and also allows you to provide a glob'ed file mask using a rcopy_glob() method.

Be aware about an ugly bug which strikes espetially if you want copy files from/to UNC path on windows.

  • Comment on Re: Directory or file not found while using copy