Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Capturing System Output

by BazB (Priest)
on Mar 04, 2003 at 16:11 UTC ( [id://240397]=note: print w/replies, xml ) Need Help??


in reply to Capturing System Output

Use backticks, not system if you want to capture the output.

system runs a command and returns, exec run commands and never returns, backticks run the command and lets you capture the output.

perldoc is your friend. See the entries for system, exec and the perlop page for backticks.


If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-04-18 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found