in reply to Finding the path of the current library/file
__FILE__ gives you the current filename, eg "cwd.pl".
To get the current working directory use Cwd
use Cwd; $dir = getcwd; [download]