Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by ikegami (Patriarch)
on Nov 16, 2010 at 22:46 UTC ( [id://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

Replies are listed 'Best First'.
Re^2: question on exitcode provided by status() method of Win32::Job
by BrowserUk (Patriarch) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://871859]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found