Anthony Ettinger wrote: > works from the command line, but when I run the cgi > script on apache, I get the following message in > STDERR: > > Can't locate HTML/Newsletter.pm in @INC (@INC > contains: /home/ettinger/modules > /usr/local/lib/perl5/5.6.1/i686-linux > /usr/local/lib/perl5/5.6.1 > /usr/local/lib/perl5/site_perl/5.6.1/i686-linux > /usr/local/lib/perl5/site_perl/5.6.1 > /usr/local/lib/perl5/site_perl .) at > /home/virtual/domain.com/www/cgi-bin/mailer.cgi line > 5. > BEGIN failed--compilation aborted at > /home/virtual/domain.com/www/cgi-bin/mailer.cgi line > 5. > [Thu Jul 24 15:59:30 2003] [error] [client > 64.186.173.137] Premature end of script headers: > /home/virtual/domain.com/www/cgi-bin/mailer.cgi > > > At the top of my script I have: > > use lib "/home/ettinger/modules"; > use HTML::Newsletter; > > works fine if I execute the script from the command > line, but not in web server environment. > > any ideas?
Did you put Newsletter.pm into an HTML subdir of "/home/ettinger/modules" ? ie: /home/ettinger/modules/HTML That's the most common mistake. -- ,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED] (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/ -/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (Free site for Perl/Lakers) _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs