powerhouse has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to put:
<META http-equiv=Page-Enter content="revealTrans &#13;&#10;(Duration=0 +.8,Transition=23)"> <META http-equiv=Page-Exit content="revealTrans &#13;&#10;(Duration=0. +8,Transition=12)">
using CGI.pm's start_html()

however, it keeps outputing this on the html page:
<META name="Page-Enter" content= "revealTrans &#13;&#10;(Duration=0.8, +Transition=23)">...


So, I have tried a lot of different ways to do it, but cannot figure out how to put it in the start_html array to make it work.

I had to print it after the start_html() array, and it works, but I know that is not the proper place, so I would like to know how to put it in where it belongs.

If you know, I would appreciate your advice.


thx,
Richard

Replies are listed 'Best First'.
Re: CGI.pm and "http-equiv"
by antirice (Priest) on Nov 05, 2005 at 23:05 UTC

    Try start_html with -head:

    #!/usr/bin/perl -l use CGI ":all"; print start_html(-head => [ meta({ -http_equiv => "Page-Enter", -content =>"revealTrans (Duration=0.8,Transition=23)" }), meta({ -http_equiv => "Page-Exit", -content =>"revealTrans (Duration=0.8,Transition=12)" }) ]);

    This feature is documented within the CGI.pm documentation.

    Note, I removed the &#13;&#10; as they're \r\n encoded as HTML entities.