chdir is not current directory: it's CHange Directory.
Try:
use Cwd;
warn cwd;
CWD is Current Working Directory.
At 16:24 20/12/2002, Shailesh wrote:
I am facing a strange problem in my Perl script. When I run my Perl script
from a sub folder, it takes the root folder as the
I am facing a strange problem in my Perl script. When I run my Perl
script from a sub folder, it takes the root folder as the reference. The
`chdir` (current directory) command is giving me the ‘C:’ irrespective of where
I run my Perl script from.
I think this has to do with some environm