Arijit Das wrote:

How can I check if a Perl Module is installed in my System from a Perl Program?
#!/usr/local/bin/perl
if (<Quota Module is installed in my system>) {
    use Quota;
}


my $has_quota = eval { require Quota; } ? 0 : 1;

if ($has_quota) {
   require Quota;

   ...
}
else {
   ## not installed;
}

END ---------------------------------------------------------
   What doesn't kill us can only make us stronger.
              Nothing is impossible.
                                
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Developer / Liquidity Services, Inc.
    http://www.liquidityservicesinc.com
       http://www.liquidation.com
       http://www.uksurplus.com
       http://www.govliquidation.com
       http://www.gowholesale.com


_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to