- or download this
use File::Spec;
...
# and for copy
$old=catfile($dir,$file);
$new=catfile($dir1,$file);
- or download this
copy ($old,$new) or die "Unable to copy '$old' to '$new': $!";
- or download this
use File::Spec::Functions (qw/catdir rootdir catfile/);