Use something Class::Load rather than eval STRING; almost no one checks $package_name for sanity. If that comes from anything at all untrusted, you have a code injection vulnerability.
Improve your skills with Modern Perl: the free book.
In reply to Re: How to import names from a dynamically required module
by chromatic
in thread How to import names from a dynamically required module
by jds17
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |