in reply to Re: Re: Splitting a hashref into hashrefs
in thread Splitting a hashref into hashrefs
I would only use another level below this if there are multiple values. For example, if there are multiple groups per organization, I would represent groups as an array of hashes, so I could make a template like this:<p>Org id: [% org_id %]</p> <p>Org name: [% org_name %]</p> <p>Group id: [% group_id %]</p> <p>Group name: [% group_name %]</p>
<p>Org id: [% org_id %]</p> <p>Org name: [% org_name %]</p> [% FOREACH group = groups %] <p>Group id: [% group.id %]</p> <p>Group name: [% group.name %]</p> [% END %]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Splitting a hashref into hashrefs
by legLess (Hermit) on Mar 20, 2003 at 22:43 UTC | |
by perrin (Chancellor) on Mar 20, 2003 at 22:53 UTC |