andyford has asked for the wisdom of the Perl Monks concerning the following question:
gives#!/usr/local/perl-5.8.7/bin/perl -T use warnings; use strict; use CGI; use CGI::Carp qw/fatalsToBrowser warningsToBrowser/; my $query = new CGI; print $query->start_html( -head=>comment('commentary in the <head>'), ); print $query->end_html;
<h1>Software error:</h1> <pre>Undefined subroutine &main::comment called at /usr/local/apac +he-1.3.33/cgi-bin/tryCommentInHead.cgi line 7. </pre> <p> For help, please send mail to this site's webmaster, giving this error + message and the time and date of the error. </p> [Mon Aug 14 15:00:08 2006] tryCommentInHead.cgi: Undefined subroutine +&main::comment called at /usr/local/apache-1.3.33/cgi-bin/tryCommentI +nHead.cgi line 7.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI.pm: HTML comment in <head>
by friedo (Prior) on Aug 14, 2006 at 20:12 UTC | |
by andyford (Curate) on Aug 14, 2006 at 20:21 UTC | |
|
Re: CGI.pm: HTML comment in <head>
by Fletch (Bishop) on Aug 14, 2006 at 20:12 UTC |