Software >> Development >> Languages >> Perl >>  How to obtain the current working directory

Use Cwd; $dir = getcwd; # alternatively $dir = cwd;