|Pathologically Eclectic Rubbish Lister|
PERL modules named differently than the package won't exportby kovacsbv (Novice)
|on May 14, 2012 at 15:50 UTC||Need Help??|
kovacsbv has asked for the
wisdom of the Perl Monks concerning the following question:
I have different versions of a module, say Utils1.pm and Utils2.pm with different filenames but they all have the same package name. I want a .pl file to be able to use whatever version it wants.
Here's the module:
And it exports a few functions that are used at many points int the code. Because the function is used so many places, I want to improve readability by not explicitly referencing the package in app.pl.
Then we have the app.pl:
But I get this when running it:
How do I get Log() imported into main? TIA