File::Copy::Recursive does not export any functions by default. You need to change line 2 of your script to specify the function(s) you need. Something like:
use File::Copy::Recursive qw(rcopy);Secondly, that module does not export a copy function. If you want to copy a single file, you need to use copy from File::Copy instead. If you want to copy a whole tree, you need to change line 12 of your script to one of the recursive copy functions from File::Copy::Recursive, probably rcopy.
In reply to Re: Undefined subroutine &main::copy called
by chrestomanci
in thread Undefined subroutine &main::copy called
by Nihad Nizar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |