title: perl move throws error, but does move the file
body: <p>I'm pretty new to perl and just found some very unexpected behaviour.</p>
  
  <p>I use move from <a href="http://search.cpan.org/perldoc?File%3a%3aCopy" rel="nofollow"><code>File::Copy</code></a> to rename a folder. It works as expected, but when I look at the return value variable <code>$!</code> afterwards, it shows an error.</p>
  
  <p>The relevant code I use:</p>
  
  <pre><code>$helpr =~ s/\./ /g;
  
  move($file,$helpr);
  print $!;
  </code></pre>
  
  <p>The output:</p>
  
  <pre><code>[j@box test]$ ls
  my.test.dir
  [j@box test]$ fileRenamer.pl
  No such file or directory
  [j@box test]$ ls
  my test dir
  </code></pre>
  
  <p>Why do I get an error code, when the job is done anyhow? What am I missing?</p>
  
  <p>Thanks everyone!</p>