in reply to Re: current working dir is location of script?
in thread current working dir is location of script?

A core module which encapsulates this technique is called FindBin. If your application wanted to keep some local library of modules, you could apply lib and FindBin together:

# myscript.pl use FindBin; use lib $FindBin::Bin; use MyModule; # kept in same directory as myscript.pl

--
[ e d @ h a l l e y . c c ]