If you want to copy a directory and all it's contents, then you need rcopy or dircopy from File::Copy::Recursive
marto recommend that you enable strict an warnings, and sort out the issues raised. Have you done that?
In your first post you used <code> tags correctly, so you clearly know how to use them, but this time you did not. Could you edit that last post to put the code tags back in.
In reply to Re^3: Undefined subroutine &main::copy called
by chrestomanci
in thread Undefined subroutine &main::copy called
by Nihad Nizar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |