Probably worth investigating $! - as suggested in ...Return value of -1 indicates a failure to start the program or an error of the wait(2) system call (inspect $! for the reason)...
In reply to Re: system() returns -1 with $SIG{CHLD}?
by Bloodnok
in thread system() returns -1 with $SIG{CHLD}?
by cmv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |