in reply to How can you make 'use lib "foo"; dynamic?
At run time and then dynamically load your class (or module) withpush @INC , $yourPath ;
So at runtime, the use can specify where to find modules and which one to load. Hope it helps. Regards. J.eval "require $yourModule;" ; if( $@ ){ die "Cannot load $yourModule : $@" ; }
|
|---|