The traditionnal way is to wrap the require of the module in an eval:
if( eval "require $module") { import $module; } else { # die or apply contingency procedure }
In reply to Re: check for modules
by mirod
in thread check for modules
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |