What happens when you use a real templating engine? No offense, but i stopped using HERE DOCS moons ago, you should too. You should also start writing XML compliant HTML (XHTML). Here is some code to get started. I ran your HTML through HTML Tidy and brought Template along for the ride since you have "class" like entities (cust and cfg). Hope this helps. :)
use strict; use warnings; use Template; my $tt = Template->new; $tt->process( \*DATA, { title => 'test title', cust => { last_change => scalar localtime, feedback => 'i want my money back!', terms2 => 'sign your name here', }, cfg => { lastchange => "It's never last changed, it's last modified!", webmaster_email => 'admin@nimda.com', }, } ) || die $tt->error(); __DATA__ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:/ +/www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="generator" content="HTML Tidy, see www.w3.org" /> <title>[% title %]</title> </head> <body> <table border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td height="100%">&nbsp;<br /></td> </tr> <tr> <td align="center" class="copyleft" valign="bottom"> (c) 2003 Blah, [% cust.last_change %]: [% cfg.lastchange %], [% +cust.feedback %]: <a href="mailto:[% cfg.webmaster_email %]">[% cfg.webmaster_emai +l %]</a><br /> <a href="terms.cgi">[% cust.terms2 %]</a><br /> </td> </tr> </table> </body> </html>

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

In reply to Re: I need a title - sucka! :-) by jeffa
in thread I need a title - sucka! :-) by PetaMem

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.