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 : $@" ; }
In reply to Re: How can you make 'use lib "foo"; dynamic?
by jeteve
in thread How can you make 'use lib "foo"; dynamic?
by martell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |