in reply to Re^2: OO factory behind simple methods
in thread OO factory behind simple methods
... However, I had to do no such changing of notation when ...
you can't use require $modname without string eval because require expects a $filename
since string-eval takes perl source code, $type would should be validated to prevent problems
eval "require $modname; 1" is slower than require $filename;
so module::load helps you use require $modname by converting $modname into filename
|
|---|