Hi list,
How do I know whether a given module is installed on
machine or not?

Thanks and Regards,
Manish


Hi Manish -

The way I check to see if a module is installed

perl -e "use ModuleName;"

(eg.  perl -e "use XML::Simple:"


If you get an error, then it is not installed.

Now I use ActiveState Perl on an XP box. If you're using perl on a Unix-type machine, the double quotes may need to be

perl -e 'use XML::Simple;'

Someone here will correct me if I'm wrong about this.

HTH,
Mark


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to