title: How can I copy a file in Perl and maintain its timestamp?
body: <p>I am using the File::Copy module to copy a file in Perl: </p>
  
  <pre><code>#! /usr/bin/perl -w
  
  use File::Copy;
  
  copy("somefile.log", "copiedfile.log");
  </code></pre>
  
  <p>I would like to preserve timestamps (particularly the modification time), but this doesn't appear to be an option.</p>
  
  <p>Is there a straightforward way to achieve this without resorting to making a system call to "cp -p"?</p>