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
  • Comment on Re: question on exitcode provided by status() method of Win32::Job
  • Download Code

Replies are listed 'Best First'.
Re^2: question on exitcode provided by status() method of Win32::Job
by BrowserUk (Pope) on Nov 17, 2010 at 05:26 UTC

    That's strange?

    c:\test>perl -E"$^E=13; say $^E" The data is invalid

    Which matches with the MS definition


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      I wasn't on Windows at a the time. I was showing how to get the value. Sorry, I didn't make that clear.