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.