exit status
- From: "Jerry Adair" <jerry.adair@xxxxxxx>
- Date: Fri, 31 Mar 2006 10:37:55 -0500
Ok I'll keep with my vane of asking potentially obvious questions.
I am attempting to return an error code from a Perl script. At first blush,
it seemed easy with the exit() call. But it doesn't work. Just out of
frustration I tried a return() call, and I got the correct return code,
albeit with an error message about returning from a non-subroutine.
The code I had was simple enough:
exit(status( <blah blah blah> ));
Thank you in advance.
Jerry
.
- Follow-Ups:
- Re: exit status
- From: Jim Gibson
- Re: exit status
- From: Paul Lalli
- Re: exit status
- From: J. Gleixner
- Re: exit status
- From: Andrzej Adam Filip
- Re: exit status
- Prev by Date: Re: Find duplicates in a dat file
- Next by Date: Re: exit status
- Previous by thread: Speed of increment operators
- Next by thread: Re: exit status
- Index(es):
Relevant Pages
|