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";