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


in reply to copying files through modules

I do not really understand most of your question, can you explain what you mean by "accept a module"?

If all you are trying to do is copy a file from one disk location to another, you could use the File::Copy module which is included in the Perl base distribution:

use File::Copy; copy("file1","file2") or die "Copy failed: $!";