Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Capturing System Output

by BazB (Priest)
on Mar 04, 2003 at 16:11 UTC ( #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? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2022-05-25 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?