package Foo; # Some kind of just-in-time configuration happens here... sub init { push @INC, '/my/module/dir'; }