in reply to current directory

Mike gave the perfect answer. However, if for some reason you didn't want to load the Cwd module, you could always just my $cwd = `pwd`; or your system's equivalent.

"Falling in love with map, one block at a time." - simeon2000