<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Greetings,<DIV>I've pulled out enough hairs on this. I can't find an example in the TT book. So I request the help of you, oh mongers most excellent:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I have a TT data structure defined as a hash of hashes and I can't figure out how to iterate through them. Here's the code:</DIV><DIV># /templates/lib/fees:</DIV><DIV>[% #define fees</DIV><DIV>    fees = {</DIV><DIV>        dseq = {</DIV><DIV>            A   = {</DIV><DIV>                title = "cadillac"</DIV><DIV>                fee = 25</DIV><DIV>            }</DIV><DIV>            B   = {</DIV><DIV>                title = "economy"</DIV><DIV>                fee = 15</DIV><DIV>            }</DIV><DIV>            C   = {</DIV><DIV>                title = "scooter"</DIV><DIV>                fee = 9</DIV><DIV>            }</DIV><DIV>            D   = {</DIV><DIV>                title = "Do-it-yourself"</DIV><DIV>                fee = '2.60'</DIV><DIV>            }</DIV><DIV>            E   = {</DIV><DIV>                title = "Fragment Analysis, aka AFLP"</DIV><DIV>                fee = '2.60'</DIV><DIV>            }</DIV><DIV>         }</DIV><DIV>    };</DIV><DIV>%]</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV># from templates/src/dseq/index.html</DIV><DIV>...</DIV><DIV>        &lt;ul&gt;</DIV><DIV>            [% FOREACH key IN fees.dseq.keys %]</DIV><DIV>               &lt;li&gt; [% key %] mode, [% fees.dseq.key.title %]: [% fees.dseq.key.fee %] &lt;/li&gt;</DIV><DIV>            [% END %]</DIV><DIV>            &lt;li&gt;Discounts available for high-throughput work. Contact the lab for details.&lt;/li&gt;</DIV><DIV>        &lt;/ul&gt;...</DIV><DIV>This gives no error but doesn't return anything for [% fees.dseq.key.title %]: [% fees.dseq.key.fee %]</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Do I need to change the data structure to a List of hashes? or can I get to the internal hash directly?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks,</DIV><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Tom K</DIV><DIV><A href="mailto:kellert@ohsu.edu">kellert@ohsu.edu</A></DIV><DIV>4-2442</DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>