The $? is the same as the pid returned by open2.
$^E is a system-wide variable which can be set by any program running in the system (I'm on Windows remeber?). It's value is persistent across processes until somebody sets it to a new value (by causing some error). I cannot rely on that to check wether the call to open2 succeded or not. Also, $^E is never "reseted" or "unseted".
The reality is that if open2 failes, no exception will be thrown and there is no way check for failure (until I actually try to read/write on those pipes, of course).
In reply to Re: Re: Re: Re: IPC::Open2, WinXP, Perl 5.6.1
by mrd
in thread IPC::Open2, WinXP, Perl 5.6.1
by mrd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |