Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to import names from a dynamically required module

by chromatic (Archbishop)
on Oct 02, 2012 at 23:02 UTC ( #996933=note: print w/ replies, xml ) Need Help??


in reply to How to import names from a dynamically required module

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.


Comment on Re: How to import names from a dynamically required module
Download Code
Replies are listed 'Best First'.
Re^2: How to import names from a dynamically required module
by jds17 (Pilgrim) on Oct 02, 2012 at 23:13 UTC
    chromatic, you are right. I will strip out eval completely and use Class::Load.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996933]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2015-07-31 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls