cvs commit: www/en/cgi query-pr-lib.pl query-pr-summary.cgi query-pr.cgi

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Jan 10 14:15:28 PST 2007


On 2007-01-10 22:46, "Simon L. Nielsen" <simon at FreeBSD.org> wrote:
> On 2007.01.10 17:47:39 +0000, Daniel Gerzo wrote:
> > danger      2007-01-10 17:47:39 UTC
> > 
> >   FreeBSD doc repository
> > 
> >   Modified files:
> >     en/cgi               query-pr-summary.cgi query-pr.cgi 
> >   Added files:
> >     en/cgi               query-pr-lib.pl 
> >   Log:
> >   Merge query-by-number and multi-field query forms.
> >   This work included:
> >   
> >   - move a few functions out of query-pr-summary.cgi into a new file -
> >     query-pr-lib.pl, which now provides a procedure to display forms
> >   - include query-pr-lib.pl in both query-pr.cgi and query-pr-summary.cgi
> >     scripts
> >   
> >   PR: www/35647
> >   Approved by: trhodes (mentor), keramida (mentor)
> >   Silence from: www@
> 
> [simon at zaphod:~] fetch http://www.freebsd.org/cgi/query-pr-summary.cgi
> fetch: http://www.freebsd.org/cgi/query-pr-summary.cgi: Internal Server Error
> 
> [Wed Jan 10 21:42:56 2007] [error] [client 69.147.83.37] Can't locate ./query-pr-lib.pl in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8) at /www/sites/www.freebsd.org/data/cgi/query-pr.cgi line 39.
> [Wed Jan 10 21:42:56 2007] [error] [client 69.147.83.37] Premature end of script headers: query-pr.cgi

That's odd.  './cgi-lib.pl' is in the same path and it doesn't seem to
have the same problems.

There is a difference between cgi-lib.pl and query-pr-lib.pl but I'm not
sure if this has anything to do with failing to find './query-pr-lib.pl'
without @INC.

The cgi-lib.pl script starts with:

    #!/usr/bin/perl -- -*- C -*-

But the query-pr-lib.pl script starts with:

    #!/usr/bin/perl -Tw

Is there any case the -Tw switches break 'query-pr-lib.pl' as a module?



More information about the cvs-doc mailing list