Re: exit status of a perl script?



On Feb 27, 9:47 am, bugbear <bugbear@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I've just googled for 10 minutes,
and found lots of stuff about calling the exit function.

What is the defined exit status (as when a perl script
is called from *nix) behaviour of a perl script
when the exit function IS NOT called?

In other words what values can I expect in $?
under varying circumstances?

BugBear (who did try to google this)

0 if the program completes normally.

non-zero if it dies or won't compile or blows up.
non-zero means something like: errno || 255
.



Relevant Pages

  • exit status of a perl script?
    ... and found lots of stuff about calling the exit function. ... What is the defined exit status (as when a perl script ... BugBear (who did try to google this) ...
    (comp.lang.perl.misc)
  • Re: exit status of a perl script?
    ... is called from *nix) behaviour of a perl script ... when the exit function IS NOT called? ... die() returns 255. ... Just falling through returns 0. ...
    (comp.lang.perl.misc)
  • Re: exit status of a perl script?
    ... and found lots of stuff about calling the exit function. ... The perlrun manpage has information about running perl programs. ... is called from *nix) behaviour of a perl script ...
    (comp.lang.perl.misc)