No such thing as a small change | |
PerlMonks |
Re^5: use of already eval()ed module (from string)by LanX (Saint) |
on Jan 09, 2019 at 11:57 UTC ( [id://1228250]=note: print w/replies, xml ) | Need Help?? |
The more modules are to be required dynamically the more a @INC hook approach is recommended, because otherwise timing could cause weird side effects . Regarding your new "encryption" requirement, well good luck... You seem to believe compiling Perl code makes it unreadable, but I can instantly think of at least three different approaches to deparse op-trees held in memory. Personally I'd leave the decryption to the hook. If you are afraid that the decryption key could be read from memory, switch to a algorithm which encrypts the key. Since your approach is based on secure op-trees, this would be "safe" too. (read: not any more unsafe)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|