title: How do I redirect the output of Perl script executed from within another perl script to a file?
body: <p>I am running a perl script via crontab and redircting its output to a file:</p>
  
  <pre><code>30 1 * * * /full/path/to/my_script.pl &gt;&gt; /full/path/to/my_log_file
  </code></pre>
  
  <p>Within my_script.pl, I'm executing several other perl scripts via the system() command:</p>
  
  <pre><code>#/usr/bin/env perl
  system( "/full/path/to/another_script.pl" );
  </code></pre>
  
  <p>And within those scripts, I am using 'print' to write to STDOUT:</p>
  
  <pre><code>#/usr/bin/env perl
  print "Standard output...\n";
  </code></pre>
  
  <p>It appears, however, that none of those child scripts' output is getting redirected to my_log_file- The only output I see there is that of the parent perl script. Am I missing something obvious?  This is on a linux system.</p>