title: How can I redirect standard output to a file in Perl?
body: <p>I'm looking for an example of redirecting stdout to a file using Perl. I'm doing a fairly straightforward fork/exec tool, and I want to redirect the child's output to a file instead of the parents stdout.</p>
  
  <p>Is there an equivilant of <code>dup2()</code> I should use?  I can't seem to find it</p>