LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   perl mail (https://www.linuxquestions.org/questions/linux-newbie-8/perl-mail-83789/)

spako 08-20-2003 08:06 AM

perl mail
 
i am quite new with linux/perl etc....:newbie:

this is part of a perl mail script:
---------------------------------------------
#!/usr/bin/perl -T

use strict;
use CGI;
use Config::General;<----------this gives me an error
use Net::SMTP;

-----------------------------------------
the error in apache log:
-------------------------------------------
Can't locate Config/General.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl) at /var/www/cgi-bin/mail.pl line 5.
BEGIN failed--compilation aborted at /var/www/cgi-bin/mail.pl line 5.
[Tue Aug 19 14:31:36 2003] [error] [client 196.25.133.226] Premature end of script headers: /var/www/cgi-bin/mail.pl
-----------------------------------------------------

do i have to install an rpm or is there something i have to configure for Config/General.pm?

Hangdog42 08-20-2003 08:30 AM

Did you install the General Config module? You can find it at CPAN by searching on Config::General. Just download the .tar.gz file, extract it and follow the instructions in the INSTALL file. By the way, if you are just starting out with perl, CPAN is an invaluable resource. You also might want to check out PerlMonks and the LQO Programming forum here for advice. There are several good perl programmers that follow the LQO board.

Perl modules are usually drop dead easy to install, but post back if you have trouble.

spako 08-20-2003 09:17 AM

yeah cool
got that module installed

just 1 more question....
I also tried to install Net::SMTP
but it told me it is already installed and asked if i want to update
is there a way to find out which version is installed?

spako 08-20-2003 09:56 AM

it is cool now i got round that problem thanx for the help!!


All times are GMT -5. The time now is 05:56 PM.