in reply to @INC package location

To combine scripts and (self-written) modules in relative directories, I like to do something like the following:
BEGIN { use FindBin qw($Bin); # get actual path of this script use lib "$Bin/../lib"; # add path/../lib/ to @INC use ModuleXY; # load module ModuleXY.pm from lib } # BEGIN
e.g. if a script is in .../myScript/bin/ and the modules are in .../myScript/lib/

I use it a lot unter Win2k, Linux and Solaris, and it works great.

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"