|
|
| more useful options | |
| PerlMonks |
Re: use lib problem.by Tomte (Priest) |
| on Jun 01, 2007 at 07:21 UTC ( #618658=note: print w/ replies, xml ) | Need Help?? |
|
This is because use lib $mod_path is evaluated during compile time (it's equivalent to BEGIN { require lib; lib->import($mod_path) ; } - but the assignement to $mod_path is done during runtime - in effect you are calling lib->import with an empty list as argument I modified my lib.pm to produce a little message every time import is called:
Your first version:
regards,
An intellectual is someone whose mind watches itself.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||