command line:
perl -e "use Image::Size"

if you get an error, it's missing, else it's installed.

> -----Original Message-----
> From: Dennis Senftleben [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 19, 2002 12:03 PM
> To: [EMAIL PROTECTED]
> Subject: How to test if a module is installed ?
> 
> 
> Hi !
> My perlscript uses the Image::Size module.
> It works fine if it is installed, but if not I get a 
> compilation error msg.
> How can I test with perl if it is installed on my system ?
> Is there something like 
> if ( -e Image::Size ) { use Image::Size ;}
>       else { print(" module not installed");}
> 
> Dennis
> 
> 
> icq: #28395132
> 
> ---------------------------------------
> This message was sent by Postaci Webmail. See www.trlinux.com 
> for details.
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to