in reply to current directory

You can use the Cwd module, like this:
use Cwd; my $dir = cwd;

-- Mike

--
just,my${.02}