Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Question on qx

by BUU (Prior)
on Nov 03, 2006 at 20:53 UTC ( #582164=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Question on qx
Download Code
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 $?.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://582164]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-06 15:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (77 votes), past polls