[Israel.pm] Exit code and pid in one.

Thomas Maier hayzer at 012.net.il
Tue Jun 15 01:07:23 PDT 2004


Hi All,
If I spawn a process from perl, and I need both its PID and the return 
value, is there a straight-forward way (no fork involved)?
system gets the exit code, open “|-“ returns the PID.
How can I get them both at once?
Thanks ahead,
Thomas.




More information about the Perl mailing list