You may wish to start with correcting the first call to lista_files. It's currently lista_dirs($dir,$dir); and I assume it's supposed to be lista_dirs($dir,$dir2);
Then add use strict; and use warnings; before the use File::Copy;
Then we'll see what else needs to be corrected.
In reply to Re: attempt to copy files and directories to new location
by CSJewell
in thread attempt to copy files and directories to new location
by grashoper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |