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.use Module::Locate 'locate'; print "Couldn't find Some::Module" unless locate 'Some::Module';
_________
broquaint
In reply to Re: Testing for a module's presence
by broquaint
in thread Testing for a module's presence
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |