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?