http://qs321.pair.com?node_id=626966

PerlMe has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to use chdir perl call
But the call always returns false. what are the probable reasons for this. The permission for the $CURRDIR directory are good.
$DATE = `date +%Y-%m-%d`; $CURRDIR = '/home/'.$USER.'/'.$DATE; #chdir ($CURRDIR) || die "couldn't change the directory";
Output:: couldn't change the directory