Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Calculations before using lib;by afoken (Chancellor) |
on Aug 05, 2014 at 04:40 UTC ( [id://1096243]=note: print w/replies, xml ) | Need Help?? |
As perl needs to know the arguments for use lib before calling lib's import method, every expression used there is implicitly in a BEGIN block equivalent. So I often use a construct like this in my code:
This can also be used with taint mode to untaint the value of $FindBin::Bin:
Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|