Hi, Read:
perldoc if NAME if - "use" a Perl module if a condition holds SYNOPSIS use if CONDITION, MODULE => ARGUMENTS; DESCRIPTION The construct use if CONDITION, MODULE => ARGUMENTS; has no effect unless "CONDITION" is true. In this case the effect is the same as of use MODULE ARGUMENTS; Teddy ----- Original Message ----- From: "Arijit Das" <[EMAIL PROTECTED]> To: <ActivePerl@listserv.ActiveState.com>; <perl-unix-users@listserv.ActiveState.com> Sent: Wednesday, July 27, 2005 20:45 PM Subject: Checking Perl Module installed - How? > Hi, > > How can I check if a Perl Module is installed in my System from a Perl Program? > > I want to do something like this: > > #!/usr/local/bin/perl > > if (<Quota Module is installed in my system>) { > use Quota; > } > > > Any help is appreciated. > > Thanks, > Arijit > > > > > --------------------------------- > Start your day with Yahoo! - make it your home page ---------------------------------------------------------------------------- ---- > _______________________________________________ > ActivePerl mailing list > ActivePerl@listserv.ActiveState.com > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs