- or download this
open(FL, $File::Find::name);
...
close(FL);
- or download this
use File::Spec::Functions qw(catdir);
...
$newdir = catdir( $dstdir => $dir );
- or download this
eval { mkpath($newdir, 0, 0755) };
if ($@) {
print "can’t mkdir $newdir: $@";
}
- or download this
use strict;
use MP3::Info;
...
# a directory as the second argument
copy($path => $newdir) or die "copy failed: $!\n";
}