in reply to How to print STDOUT to a file

You can also capture output from a system call using backticks (``). From "perldoc -f system":

This is not what you want to use to capture the output from a command, for that you should use merely backticks or "qx//", as described in "`STRING`" in perlop.

Using the backticks method, you can save the output in a variable, which can then be printed to file or otherwise manipulated.