in reply to Out of a hole?

well, if you're content with non-'pure perl' way of doing it
$pwd = `pwd`; # for unix $pwd = `cd`; # I think, for that other OS I never use chomp($pwd);
will give you the full path to the current working directory

/\/\averick

Replies are listed 'Best First'.
RE: Re: Out of a hole?
by barndoor (Pilgrim) on Jul 06, 2000 at 12:48 UTC
    If you want to be a bit more platform independent then stick a test on $^O to determine what sort of machine your running on.
    if($^O eq "MSWin32") { $pwd = `cd`; } else { $pwd = `pwd`; }
    Barn.