exit status



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


.



Relevant Pages

  • Setup failed while installing Admin Group 0x80071392
    ... Setup failed while installing sub-component Administrative Group with error code 0x80071392 (blah blah try again...) ... Entering ScCreateTLH ... Entering ScQueueWatsonErrorReport ...
    (microsoft.public.exchange.setup)
  • Re: Dungeon Seige:LoA trouble
    ... | getting tired of the Welcome screen password set-up, ... | Param 2: 0 ...
    (microsoft.public.games)
  • Re: exit status
    ... I am attempting to return an error code from a Perl script. ... At first blush, ... exit(status(<blah blah blah>)); ... How do you test the value of exit code? ...
    (comp.lang.perl.misc)