Change this:
system("mv $out $newdir");To this:
$errormessage = `/bin/mv "$out" "$newdir" 2>&1`; if($?){ warn "Error($?) There was a problem " . "copying '$out' to '$newdir': $! \n $errormessage\n"; }
In reply to Re: Check if file exists in multiple directories
by FreeBeerReekingMonk
in thread Check if file exists in multiple directories
by Bama_Perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |