Subject: | available_module(MODULENAME) |
It would be handy to have a function that translates a module name to its
notional filename, searches @INC for it, but does not then require it.
Example use case... a module I'm working on needs:
* Mouse and MouseX::Types; or
* Moose and MooseX::Types.
I don't want to require Mouse until I'm sure that MouseX::Types is
available, and I don't want to require Moose until I'm sure that
MooseX::Types is available.
Maybe even accept a list available_modules(MODULE1, MODULE2, ...) and
return true if and only if all the modules listed are available.