You're on the right track with File::Copy::Recursive. Take another look at the documentation, here's a short example to get you started:
#!/usr/bin/perl use strict; use warnings; use File::Copy::Recursive qw(dircopy); my $source = "d://source"; my $target = "d://target"; my $filecopied = dircopy($source, $target); print "files copied: $filecopied";
If you are new to perl the following links will likely be of interest:
In reply to Re^5: error in copy folder recursively
by marto
in thread error in copy folder recursively
by mrityunjaynath
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |