in reply to Undefined subroutine &main::copy called
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Undefined subroutine &main::copy called
by zwon (Abbot) on Dec 14, 2010 at 11:09 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |