title: Move Directory in perl
body: <p>I am trying to move a directory using perl within the same  volume in ubuntu.</p>
  
  <p>I used the move ( File::Copy ) command in Perl like below</p>
  
  <pre><code>move($dir1, $dir2);.  # Doesn't work.
  </code></pre>
  
  <p>Expecation is that $dir1 will be place under $dir2 after the move. But got an error saying that 'Is a directory'.</p>
  
  <p>But when I use system mv it works perfectly. </p>
  
  <pre><code>system("mv $dir1 $dir2"); #This works!.
  </code></pre>
  
  <p>I searched google and understood that move should works exactly like mv in linux?.  Any ideas?</p>