Perl/CGI really doesn't seem to like this way of doing META tags. I've
trimmed the irrelevant stuff, am the core of what I'm trying is the
following:
#!/usr/local/bin/perl
use POSIX;
use CGI;
$q = new CGI;
print $q->header,
$q->start_html(-title=>'New page',
-head=>meta({-http_equiv => 'Content-Type',
-content => 'text/html'}));
print <<EOT;
This is the generated HTML.
</body>
</html>
EOT
In my browser (netscape) I get a "500 Internal Server error", or run from
a shell I get:
Undefined subroutine &main::meta called at test.pl line 7.
Any ideas? Thanks.
Nick
On Thu, 21 Nov 2002, fliptop wrote:
> On Wed, 20 Nov 2002 at 13:58, Michael Kelly opined:
>
> MK:On Wed, Nov 20, 2002 at 02:02:05PM +0000, Nick Malden wrote:
> MK:
> MK:CGI.pm doesn't support http-equiv meta-tags, according to the documentation.
> MK:What about something as simple as:
>
> what? snippet from perldoc CGI:
>
> To create an HTTP-EQUIV type of <meta> tag, use -head, described below.
>
> ...
>
> And here's how to create an HTTP-EQUIV <meta> tag:
>
> print start_html(-head=>meta({-http_equiv => 'Content-Type',
> -content => 'text/html'}))
>
>
> the error associated with the original post's code was due to the fact
> that the syntax was not correct. the solution that CGI.pm provides means
> that, even if the syntax is corrected, it still won't work. use the -head
> method described in the CGI docs.
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]