|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: better ways than eval to dynamic load a moduleby etcshadow (Priest) |
| on Apr 17, 2005 at 17:02 UTC ( [id://448690]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||