laziness, impatience, and hubris | |
PerlMonks |
Re: using a variable with requireby haukex (Archbishop) |
on Jun 22, 2022 at 06:36 UTC ( [id://11144938]=note: print w/replies, xml ) | Need Help?? |
See the core module Module::Load (there are others, like Module::Runtime, but this one is core), plus the \&{'subname'} symbolic reference syntax which is allowed even under strict. However, if $name is user input, this is still a security risk!
In Section
Seekers of Perl Wisdom
|
|