in reply to How to obtain current working directory

Your question is ambiguous. Do you want "Where I am now", or "Where the script located"? If you want the first option, then davido's solution above will do, whereas if you want the second option, I'd probably use File::Basename's dirname function on $0, something like:

my $dir = dirname($0);


davis
It's not easy to juggle a pregnant wife and a troubled child, but somehow I managed to fit in eight hours of TV a day.