in reply to Re: Handling returns from mkdir.
in thread Handling returns from mkdir.
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 :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Handling returns from mkdir.
by afoken (Chancellor) on Dec 24, 2010 at 11:36 UTC |