I suspect the exit value is unsigned, so your negative return code is causing a problem here. perldoc -f exit suggests that:
The only universally recognized values for EXPR are 0 for success and 1 for error; other values are subject to interpretation depending on the environment in which the Perl program is running.
Try it with some positive values and see what you get.
In reply to Re: exit value not passed back
by muntfish
in thread exit value not passed back
by mags
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |