http://www.perlmonks.org?node_id=582164


in reply to Question on qx

The output of qx// is whatever the program inside's STDOUT is. In your specific case you send all of the program's STDOUT to a file, so there is none left for perl to read.

Replies are listed 'Best First'.
Re^2: Question on qx
by duckyd (Hermit) on Nov 03, 2006 at 22:11 UTC
    if BUU's explanation wasn't enough, perhaps perlop can help
      If you're looking for the return code of the command you're running, you can use system().
        qx// also sets $?.