- or download this
$newlocation = "/perl/ass/$folder[$N]/$logfiles[$hour]";
- or download this
$newlocationdir = "/perl/ass/$folder[$N]";
- or download this
use File::Path 'mkpath';
use File::Copy 'move';
mkpath "/perl/ass/$folder[$N]";
move($oldlocation, $newlocation) or die "File cannot be moved: $!";