in reply to executing an external program

$? will contain the exit status from the last child process (including backticks). See also IPC::Run.

Replies are listed 'Best First'.
Re^2: executing an external program
by xdg (Monsignor) on Jun 21, 2006 at 20:05 UTC

    It's also worth checking out IPC::Run3. The documentation includes a comparison of IPC::Run3 to:

    • system()
    • qx''
    • open "...|"
    • open "|..."
    • open2()
    • open3()
    • IPC::Run

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.