When you "rRequire" or "use" I believe it will only recognize a .pm
extension. I'm pretty sure I've run into this before. (Someone correct me if
I'm wrong.) When you say:
require conf.cgi;
it is looking for:
conf.cgi.pm
and not finding that.
Hope this helps,
Steve Howard
-----Original Message-----
From: Max Attems [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 3:29 AM
To: [EMAIL PROTECTED]
Subject: require command?
Hi,
second attempt, now with correct email.
I saw an article about the list in perl.com
today an persisting error message occured. perhaps you would now a simple
answer.
this is the code:
#!/usr/bin/perl -Tw
use CGI;
use strict;
# defining variables:
sub cleanup;
my ($org, $adress, $mailprog, $subject, $email_header, $info);
my (@emails, @emails_unsor, @text, %to);
my $abozahl = 0;
require 'conf.cgi';
the conf.cgi is not mispelled and is in the same directory as the above
script (chmod 755), but it doesn't find it, i get this error message:
"Can't locate conf.cgi in @INC (@INC contains:
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl) at send.cgi line 13.
[Mon Jun 11 15:29:39 2001] [error] [client 212.236.208.28] Premature end of
script headers: /www/37/cgi-bin/mail/send.cgi"
why does this happen!?
thanks for your help.
with best regards
max attems