Hi, Try using
use CGI qw/:standard/; Works for me Cheers Koen -----Original Message----- From: Nick Malden [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 2:39 PM To: fliptop Cc: Michael Kelly; Perl Beginners CGI List Subject: Re: Non-caching META-tags 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] **** DISCLAIMER **** "This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer". Thank you for your cooperation. For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]