title: Rename/move function in Perl not giving results
body: <p>I have a file which I need to move to a specific folder and rename while doing so.</p>
  
  <pre><code>use File::Copy "move";
  print rename('D:\\Test\\Input\\temp.cxx','D:\\Test\\Input\\new.cxx'), die $! ;
  </code></pre>
  
  <p>But this gives me error saying "Permission denied at D:\Test\Test.pl line 35,  line 5899". I am running as admin. Even all the folders have full permissions.</p>
  
  <p><strong>Update</strong>
  It is working now. I had one of the files open on a line before this line. Once I closed it, rename works. But if I store the path in variables it again gives me the same error.</p>