For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > October 2005 > Re: how to check the particular perl module is installed or not on unix machine......









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: how to check the particular perl module is installed or not on unix machine......
Ricardo SIGNES

2005-10-01, 6:55 pm

* mayank.ahuja@tcs.com [2005-10-01T09:27:16]
> Perlers...........
> Could u plz help me how to check in unis machine whether a particular perl
> module is installed on unix machine or not


(Here on perl-beginners, I think non-LOL English is the preferred
dialect.)

The traditional test for "Do I have XYZ:ABC installed?" is:

perl -MXYZ::ABE -e1

That is about equivalent to running this perl program:

#!/usr/bin/perl
use XYZ::ABE;
1;

If you get an error like, "Couldn't find XYZ/ABE.pm in @INC..." you
don't have the module installed in your inclusion path.

--
rjbs

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com