BEGIN { $INSTALLDIR = my_fun_to_find_my_own_install_dir() } use lib "$INSTALLDIR/privatelib"; use Acme::SuperModule qw(whatever);