I'm not used to writing perl scripts on windows.  I'm having a
problem where a system call dies but still performs the command.
I don't think I understand how exit status is checked.

my $target = "E:/some_dir/another_dir";
system("mkdir  $target") or die "Can't mkdir $target: $!";

The script stops at the `or die' but looking in E:/ I see `dir' has
been created.  Also the error ouput ($!) has no value.

I get this error:
Can't mkdir E:/some_dir/another_dir  At: blah blah line 23

So the command didn't really fail but perl thinks it did.

May be notable that the script is running on C: and the target is on E:


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to