in reply to Making a 'blank' xhtml page - request for comments

Bug, you've omitted the XHTMLBODY tag in sub page_body.

There's nothing wrong with doing this as heredocs, but you might try it with use CGI qw( :standard ); or with one of the template module sets. Each approach has strengths, the choice depends mostly on how your application is organized.

After Compline,
Zaxo

  • Comment on Re: Making a 'blank' xhtml page - request for comments

Replies are listed 'Best First'.
Re: Re: Making a 'blank' xhtml page - request for comments
by func (Acolyte) on Apr 15, 2002 at 00:14 UTC

    Thanks for your suggestions. I never thought about using a CGI module.

    I've noted what you've said about templates in your reply and in the chatterbox and am currently looking at CGI::FastTemplate.

    I've also been searching PM and google to find out what heredocs are, but have had no success. I'd appreciate a definition or link if possible. :)

      See perldata for the Perl definition of heredocs ... but I'm a little baffled since you used them in your original post.

      print <<HEREDOC; ... HEREDOC

          --k.


        I've been using heredocs for quite a while (well, for a few weeks at least), but didn't realised what they were called. It's good to know their proper term. Thanks. :)