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.
In Section
Seekers of Perl Wisdom
in reply to Question on qx