Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: better ways than eval to dynamic load a moduleby etcshadow (Priest) |
on Apr 17, 2005 at 21:02 UTC ( [id://448690]=note: print w/replies, xml ) | Need Help?? |
Well, you could always do something like this:
Roughly the same, but no eval. However, if you actually use this regexp on the modulename: /^[\w:]+$/s, then I'm pretty certain that it's not possible to put in anything that could be bad.
In Section
Seekers of Perl Wisdom
|
|