Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Best way to check for installed moduleby maverick (Curate) |
on Apr 04, 2002 at 19:47 UTC ( [id://156745]=note: print w/replies, xml ) | Need Help?? |
There are other things that could make the eval fail, syntax errors, missing the 1; at the bottom of the pm...but in each of those cases you'd probably still want to treat it as if you "didn't have it". You couldn't use a broken module anyways... :)
As for the actually technique... That's probably what I'd use, I can't seem to think of another way off hand.
/\/\averick
In Section
Seekers of Perl Wisdom
|
|