Re: Multiple lines of html store in variable non messy way

From: daveyand (andrew.davey_at_gmail.com)
Date: 01/06/05


Date: 6 Jan 2005 03:13:45 -0800

hey guys thanks for the help, what i posted was what i tried, didnt
think about the =.

The reason i am doing this is i am trying to send an html email to
myself. The idea above was to try and add css to the email but turns
out i cant do that, or at least i havent l;ooked into it properly.

As for the end result, i am using a function to create a template per
se when creating the main body of the email. This is what the main
body now looks like:

my $mainbody = <<EndOfHTML;
<table border="1" cellpadding="5" cellspacing="5" width="80%">
<tr>
<td>Ticker</td>
<td>Price</td>
<td>Change</td>
<td>Percentage</td>
<td>Start</td>
<td>Highest</td>
<td>Lowest</td>
<td>Time</td>
</tr>
<tr>
<td>$csv_stockinfo{"ticket"}</td>
<td>$csv_stockinfo{"price"}</td>
<td>$csv_stockinfo{"change"}</td>
<td>$csv_stockinfo{"percent"}</td>
<td>$csv_stockinfo{"start"}</td>
<td>$csv_stockinfo{"highest"}</td>
<td>$csv_stockinfo{"lowest"}</td>
<td>$csv_stockinfo{"time"}</td>
</tr>
<tr bgcolor="#ff2120">
<td colspan="2">&nbsp;</td>
<td>Quantity</td>
<td>Vesting Price</td>
<td>XCNG Rate</td>
<td>Sell All</td>
<td>Returns<td>Pounds</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td>$ShareAmount</td>
<td>\$$Initial_Price</td>
<td>$ExchangeRate</td>
<td>\$$Sell_Returns</td>
<td>\$$returns_minus_initial</td>
<td>&pound;$Final_Earnings</td>
</tr>
</table>
EndOfHTML

I get the error:

Can't find string terminator "EndOfHTML" anywhere before EOF at
./calstockreturns.pl line 183.

What am i doing wrong??



Relevant Pages

  • Re: Coming out the closet VV long
    ... There is a reason why I ... and because I didnt have suppose I felt unable to cope and I had a social ... a week later I had a phonecall from a socialworker who wanted to ... had I been given the correct support then I would still have my boys today ...
    (alt.support.stop-smoking)
  • Re: Data
    ... I hear it claimed On The Arjf that one big reason why we've ... The one I was thinking of was gas storage. ... Oh, hey, there was never any proposal that we stop giving people zbarl. ...
    (uk.rec.sheds)
  • Re: Dynamically loading binaries in Kernel mode.
    ... kernel level (the reason I gave earlier is not the actual reason but a little ... anyone why I need to load code dynamically. ... or you didnt get it into your head the complications involved in your ... Hollis Technology Solutions 603-321-1032 ...
    (microsoft.public.development.device.drivers)
  • Re: Why picture dose not show up in web?
    ... hope its the same problem (I would not find any reason why it didnt ... produced by Publisher. ... soon as i upload in web. ...
    (microsoft.public.publisher.webdesign)
  • Re: Whats in a name. Musing about eponyms vs descriptives. (warning long)
    ... as closet COC's. ... Hey... ... No reason to bitch somehwere where no ...
    (rec.crafts.woodturning)