print "<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>";
print "<TR>";
print "<TD ALIGN=\"left\"><img src=\"",$GIF_DIR,"pic1.gif\" height=55 width=41 alt=\"\"></TD>";
print "<TD COLSPAN=\"5\" ALIGN=\"center\" VALIGN=\"top\"><img src=\"",$GIF_DIR,"pic2.gif\" height=55 width=340 alt=\"\"></TD>";
print "<TD ALIGN=\"right\"><img src=\"",$GIF_DIR,"pic3.gif\" height=55 width=41 alt=\"\"></TD>";
print "</TR>";
print "<TR>";
print "<TD COLSPAN=\"7\" ALIGN=\"left\"><P CLASS=\"link\"><A HREF=\"http://www.somesite.com/ "\" TITLE=\"Home Page\">Home</A> > <A HREF=\"http://www.somesite.com/dir/index.htm "\" TITLE=\"Doh\">Doh</A> > Homer</P></TD>";
print "</TR>";
print "</TABLE>";
Here is the code we use:
print "<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0><TR>\n";
print "<TD ALIGN=left><img src=\"",$GIF_DIR,"pic1.gif\" height=55 width=41 alt=\"\"></TD>\n";
print "<TD COLSPAN=5 ALIGN=center VALIGN=top><img src=\"",$GIF_DIR,"pic2.gif\" height=55 width=340 alt=\"\"></TD>\n";
print "<TD ALIGN=right><img src=\"",$GIF_DIR,"pic3.gif\" height=55 width=41 alt=\"\"></TD></TR>\n";
print "<TR><TD COLSPAN=7 ALIGN=left><A HREF=\"http://www.somesite.com\">Home</A> > <A HREF=\"http://www.somesite.com/dir/index.htm\">Doh</A> > Homer</TD></TR>\n";
print "</TABLE>\n";
<A HREF=\"http://www.somesite.com/ "\"
The quotation mark wasn't escaped. Try this:
print "<TD COLSPAN=\"7\" ALIGN=\"left\"><P CLASS=\"link\"><A HREF=\"http://www.somesite.com/\" TITLE=\"Home Page\">Home</A> <A HREF=\"http://www.somesite.com/dir/index.htm\" TITLE=\"Doh\">Doh</A> Homer</P></TD>";
I cleaned up the HTML a little too.
Also replace:
\"",$GIF_DIR," with \"$GIF_DIR or \",$GIF_DIR,"
print qq~
<table><tr><td>
your text on the first row of the table
</td></tr></table>
~;
another notation without any escape characters needed (an 'escape word' is used, you can pick any word) :
print <<"ANY_WORD";
<table><tr><td>
your text on the first row of the table
</td></tr></table>
ANY_WORD