in reply to knowing the current directory
use POSIX qw(getcwd); my $curdir = getcwd(); [download]
-- Ilya Martynov (http://martynov.org/)