in reply to How to obtain current working directory

The only real solution (platform independent etc.) is the FindBin module: use FindBin qw($Bin); # $Bin is your script's directory
  • Comment on Re: How to obtain current working directory

Replies are listed 'Best First'.
Re: ^2 How to obtain current working directory
by pelagic (Priest) on Mar 23, 2004 at 12:27 UTC
    File::Spec is also platform independent and btw Nelly wanted the current position not the script's directory.
    pelagic

    -------------------------------------
    I can resist anything but temptation.