title: Perl File::Copy isn't working
body: <p>I am trying to copy a file to a new filename using File::Copy but getting an error saying the file doesn't exist.</p>
  
  <pre><code>print "\nCopying $hash-&gt;{Filename1} to $hash-&gt;{Filename2}.\n" 
  copy( $hash-&gt;{Filename1}, $hash-&gt;{Filename2} ) or die "Unable to copy model. Copy failed: $!";
  </code></pre>
  
  <p>I have checked that both references are populated (by printing them) and that $hash->{Filename1} does actually exist - and it does.</p>
  
  <p>my error message is this</p>
  
  <pre><code>Unable to copy model. Copy failed: No such file or directory at B:\Script.pl line 467.
  </code></pre>
  
  <p>Anyone got any ideas of what I might have done wrong? I use this exact same line earlier in my script with no problems so I'm a bit confused.</p>
  
  <p>Is there a file size limit on File::Copy?</p>
  
  <p>Many thanks.</p>