Hiya guys,
I'm pretty keen to use HTML::Template but I've run into a brick
wall...
Here's the scenario, I've got:
-------------
<TMPL_LOOP NAME="COMICSLIST">
<TR>
<TD class=HeadingStart width=62><TMPL_VAR NAME="COMICSNUMB"></TD>
<TD class=headingend width=100%><A HREF=<TMPL_VAR
NAME="LINK_CONSTRUCT">><TMPL_VAR NAME="COMICSNAME"></A></TD>
</TR>
</TMPL_LOOP>
-------------
And then I've got some arrays with values for each of the variables
in the loop, what I've done is basically copied the example from the
perldoc, using a while loop to add the elements of an array to a hash, and
then adding a reference of the hash to the array. And then shifting my
original arrays.
Let me firstly just say, that, I don't think it's too complex (the
method to populate loops with data), once you've read over it a few times,
although the guys here at work tend to disagree ;), and the problem I'm
having is not HTML::Template's fault. My problem is, the reference to the
hash arrays do not change over the while() iterations, so, I have a table
with the correct amount of rows, but all the rows are populated with the
last set of data, because my references to the arrays arent changing.
So, HTML::Template is doing exactly what it's been told (I love it
btw :), but, PERL is starting to piss me off. Please please please, can
anyone give me a different method of generating dynamic tables, using
HTML::Template, or has come across this perl bug, or has some sort of
pointer for me?
TIA
P.S - Kinda a perl newbie, only been playing with it for a month or so, so
please go easy on me if you supply examples.
__________________
Regards
Gabriel Fortuna
Internet Solutions
"This e-mail may contain confidential information and may be legally
privileged and is intended only for the person to whom it is addressed. If
you are not the intended recipient, you are notified that you may not use,
distribute or copy this document in any manner whatsoever. Kindly also
notify the sender immediately by telephone, and delete the e-mail. When
addressed to clients of the company from where this e-mail originates ("the
sending company ") any opinion or advice contained in this e-mail is subject
to the terms and conditions expressed in any applicable terms of business or
client engagement letter . The sending company does not accept liability for
any damage, loss or expense arising from this e-mail and/or from the
accessing of any files attached to this e-mail."
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]