title: How to change a directory in perl?
body: <p>I'm not able to change the dir in perl.</p>
  
  <pre><code>#!/usr/bin/perl
  use strict;
  
  my $dir=`date +%d%b%Y`;
  #the output of $dir is 13Feb2014 that directory is already inside "/mnt/Recordings/Inbound/Kinrep/" 
  
  my $path = "/mnt/Recordings/Inbound/Kinrep/$dir";        
  chdir($path) or die "Cant chdir to $path $!";
  </code></pre>
  
  <p>whenever i'm executing my program i'm not able to change the directory i got following error.</p>
  
  <pre><code>Cant chdir to /mnt/Recordings/Inbound/Kinrep/13Feb2014
   No such file or directory at Ftp_transfer_197.pl line 17.
  </code></pre>