in reply to Current Directory

# Cwd - get pathname of current working directory use Cwd; my $dir = getcwd;