Have you looked at the documentation of the exit function? It does just that, allow you to pass a specific exit code. Another possibility would be to die in your program, but that will not allow you to specify a number and always exit with 255 (see die).
In reply to Re: How to return the exit status thru perl script execution?
by Corion
in thread How to return the exit status thru perl script execution?
by perlsen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |