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.