title: Perl execute sql, print output to a file AND write to screen
body: <p>I call a SQL file thru my perl script, which writes the output to a log file, as:</p>
  
  <pre><code>system("sqlplus -s schema/pwd\@dbname \@$sql_file &gt; $log_file");
  </code></pre>
  
  <p>However, I would like to have the output written to the screen as well. Is there a way to do this (other than re-executing the command sans writing to the log file)?</p>