|laziness, impatience, and hubris|
Use a module only if it is in useby vitoco (Friar)
|on Sep 02, 2009 at 14:22 UTC||Need Help??|
vitoco has asked for the
wisdom of the Perl Monks concerning the following question:
I want to use a module M from another module X, only if the calling program P currently uses it.
I have the following test case that works, but X asumes that P uses M:
What should be checked in X to recognize that M is loaded and available? If it's not, do nothing!
BTW, in real life, M could be any CPAN's module.