I now use this (only tested on Linux):
our $RealBin; BEGIN { use File::Basename 'dirname'; use File::Spec::Functions 'rel2abs'; $RealBin = rel2abs( dirname( __FILE__ ) ); } use lib "$RealBin/lib";
In reply to Re^4: Howto Call Package from a Subdirectory
by arpad.szasz
in thread Howto Call Package from a Subdirectory
by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |