in reply to Report Format Help!

You're question is not clear to me at all I'm afraid. Some other monks may be able to understand better or know the right questions to ask, but maybe try to explain further?

In the mean time, a simple stylistic suggestion is to use q and qq for single and double quoted strings respectively, especially when working with html that contains either.

$page .= qq{<table width="100%" border="0" bgcolor="#ffffff" cellpaddi +ng="0" cellspacing="0"> <tr> <td width="60%">Date Format Sample:</td> <td width="40%" align="left"><b>$y_string</b></td> </tr> <tr> <td width="100%" colspan="2">&nbsp;</td> </tr> </table>};

-Miller

Replies are listed 'Best First'.
Re^2: Report Format Help!
by Anonymous Monk on Feb 04, 2011 at 21:43 UTC

    ...or even a HERDOC:

    my $page = "<div>hello world</div>\n"; my $x = 'goodbye'; $page .= <<"MORE_HTML"; <div>$x</div> MORE_HTML print $page; --output:-- <div>hello world</div> <div>goodbye</div>