from system:
You can check all the failure possibilities by inspecting $? like this:if ($? == -1) { print "failed to execute: $!\n"; } elsif ($? & 127) { printf "child died with signal %d, %s coredump\ +n", ($? & 127), ($? & 128) ? 'with' : 'without +'; } else { printf "child exited with value %d\n", $? >> 8; }
Do you want the following?
system($item); # evaluate status $? according to perldoc -f above
regards,
tomte
An intellectual is someone whose mind watches itself.
-- Albert Camus
In reply to Re*5: Running or not running
by Tomte
in thread Running or not running
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |