If you read perldoc -f open carefully:
Closing any piped filehandle causes the parent process to wait for the child to finish, and returns the status value in $?.
In reply to Re: How to Trap exit code from system calls
by Fletch
in thread How to Trap exit code from system calls
by emjga1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |