http://www.perlmonks.org?node_id=871859


in reply to question on exitcode provided by status() method of Win32::Job

Sometimes programs to use system error codes as exit codes. For example, Perl uses $! as as the error code when you call die. A quick and dirty way of finding the meaning of an system error number is to assign it to $^E.

$ perl -E'$^E=13; say $^E;' Permission denied