Perl: the Markov chain saw | |
PerlMonks |
Re: Capturing System Outputby BazB (Priest) |
on Mar 04, 2003 at 16:11 UTC ( [id://240397]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|