[Perl] Locating Header File

Georges EL OJAIMI G-OJAIMI at cyberia.net.lb
Wed Jun 19 12:56:26 PDT 2002


    Hi,

I'm trying to include a file (Sender.pm) to be in the header of my main
program (send.pl).
I have inserted the following statement (use Sender;) at line 3 to be
able of including my library.
My program works fine if I test it under windows (Perl Builder + Active
State PERL 5.6), but I'm getting internal server error when testing in
on the web server!
I think PERL is not trying to search for my library file inside the same
directory!
Is there any way to force my main program to search for the header file
inside the same directory!

The error is as follow:
_______
Can't locate Sender.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.6.1/i686-linux-ld /usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux-ld
/usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .)
at /home/test/public_html/cgi-bin/send.pl line 3.
BEGIN failed--compilation aborted at
/home/test/public_html/cgi-bin/send.pl line 3.





More information about the Perl mailing list