in reply to check for modules
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 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: check for modules
by ysth (Canon) on Jan 23, 2006 at 13:54 UTC |