Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Testing for a module's presenceby broquaint (Abbot) |
on Feb 06, 2005 at 04:36 UTC ( [id://428421]=note: print w/replies, xml ) | Need Help?? |
You could use Module::Locate for the job e.g
This code will return the path to the module if it is on the system or false if not. Also it doesn't load the module it just checks for its presence in the same manner that perl's require does.
HTH
_________
In Section
Seekers of Perl Wisdom
|
|