'use' is processed at compile time. If you need to include modules at runtime, use 'require'. There are some other differences between the two so look them up in the documentation. For one thing, 'use' may import symbols from the module automatically. You need to call the module's import method yourself if you use 'require'.
Why are you using 'use lib'? You shouldn't need to do this for properly installed modules. If this is a library of your own modules, you might be better off using an environment variable such as PERLLIB or PERL5LIB to locate these rather than embedding the path in all your programs.
--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';
In reply to Re: Using a paramter value to call a module
by pfaut
in thread Using a paramter value to call a module
by Hagbone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |