Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Why doesn't 'system' return '-1' when a program fails to start on Windows?

by jkahrman (Acolyte)
on Feb 24, 2017 at 19:56 UTC ( [id://1182756]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Why doesn't 'system' return '-1' when a program fails to start on Windows?
in thread Why doesn't 'system' return '-1' when a program fails to start on Windows?

http://perldoc.perl.org/perlport.html#system Failure to spawn() a subprocess is indicated by setting $? to "255 << 8"

I definitely missed that. Seems like an odd choice for a sentinel value, though. I'm surprised '-1' wasn't used for consistency.

  • Comment on Re^3: Why doesn't 'system' return '-1' when a program fails to start on Windows?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found