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
.