Thanks for the help (Im trying to keep this code same for linux and windows, so im scared to use any options)
my $err = `mkdir $FolderName 2>&1`; chomp ($err); if ($? != 0) { if ($? == 256) { print "Warning : $err"; } else { print "Error : $err"; } }
That part of the code now works like a charm :)
In reply to Re^2: Handling returns from mkdir.
by dannyd
in thread Handling returns from mkdir.
by dannyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |