I'm going to assume that the underlying question is why different exit values are useful or how they should be used or handled. This is complicated, as it's not necessarily consistent across platforms.
Much of what exit codes do can better understood by reading the documentation for how Perl gets the exit codes back from programs that it runs -- e.g. with system and $? -- and related docs on portability:
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|