Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Best way to check for installed module

by maverick (Curate)
on Apr 04, 2002 at 19:47 UTC ( [id://156745] : note . print w/replies, xml ) Need Help??


in reply to Best way to check for installed module

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
OmG! They killed tilly! You *bleep*!!!