in reply to CGI.pm: HTML comment in <head>

The error message you're getting is telling you that the subroutine &main::comment is undefined, which is true, because you're not importing the function from CGI.pm. To do that, you need to do:

use CGI qw/:standard/;

But it looks like you're planning to use the OO style instead, so instead of importing, you can just use $query->comment() instead of comment().

Replies are listed 'Best First'.
Re^2: CGI.pm: HTML comment in <head>
by andyford (Curate) on Aug 14, 2006 at 20:21 UTC
    Right, of course. End day now.