theAcolyte has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks. There seems to be a topic in HTML::Template that I simply cannot wrap my feeble little mind around: complext data structures within loops.
Here's what I'm trying to output, as an example:
Where the list of states is not always the same, and the number of people listed for each state is not always the same.
my first inclination was to have something like this
@array = [ state => "Alaska"<BR> names => "Name One, Name Two" ]
except theres no way to split the names up in a template doc ... so I'm a lil confused. Anyone point me in the right direction? Thanks!
- Erik
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::Template Loop Question
by blokhead (Monsignor) on Sep 23, 2003 at 21:11 UTC | |
by jeffa (Bishop) on Sep 23, 2003 at 22:44 UTC | |
by theAcolyte (Pilgrim) on Sep 23, 2003 at 22:53 UTC | |
by jonadab (Parson) on Sep 23, 2003 at 23:21 UTC | |
by blokhead (Monsignor) on Sep 23, 2003 at 23:34 UTC | |
by jeffa (Bishop) on Sep 23, 2003 at 23:47 UTC | |
by clscott (Friar) on Sep 24, 2003 at 00:08 UTC | |
by jonadab (Parson) on Sep 24, 2003 at 02:19 UTC | |
by Willard B. Trophy (Hermit) on Sep 24, 2003 at 14:08 UTC | |
by theAcolyte (Pilgrim) on Sep 24, 2003 at 18:21 UTC | |
|
Re: HTML::Template Loop Question
by Enlil (Parson) on Sep 23, 2003 at 21:20 UTC |