in reply to Re: Re: Re: IPC::Open2, WinXP, Perl 5.6.1
in thread IPC::Open2, WinXP, Perl 5.6.1
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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: IPC::Open2, WinXP, Perl 5.6.1
by PodMaster (Abbot) on Feb 11, 2004 at 18:10 UTC | |
by mrd (Beadle) on Feb 12, 2004 at 09:51 UTC |