how do i get the name of current directory (basically pwd) in perl?

use Cwd;
$dir = getcwd;

this is in my opinion better than $dir=`pwd`; chomp $dir;
kind of solutions.

perldoc Cwd for the whole story.

Stuart.



--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to