Your expectations for the return value of system are not correct. It returns 0 in the case of success, and therefore your test should look like:
system( ... ) == 0 or die "System failed: $?, $!"
--MidLifeXis
In reply to Re: Bad file descriptor after vmran command using system()
by MidLifeXis
in thread Bad file descriptor after vmran command using system()
by Ingvar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |