--- $Bill Luebkert <[EMAIL PROTECTED]> wrote: > 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. >
Yes, I did...like I said it works fine from the command line (no error displayed - the module is loaded properly), but chokes when I execute it from the browser. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs