J
Jerry Adair
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
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