Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: question on exitcode provided by status() method of Win32::Job

by ikegami (Pope)
on Nov 16, 2010 at 22:46 UTC ( #871859=note: print w/ replies, xml ) Need Help??


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
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://871859]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2014-07-28 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (197 votes), past polls