in reply to How do I move array contents into a directory?

foreach my $file (@the_files) {move ($here, $there)}

You should check for success. Always. Always!

foreach my $file (@the_files) { move ($here, $there) or die "something weird happened moving '$here' to '$there': $ +!\n" }