in reply to
Dancer2 - How to loop over a ref to a HoH
This is Template Toolkit 2 right? You cannot have dollar sign ($) in a variable name (like in partners.$partner.TPCOMPNAME), so you're referencing wrong item from the hash. See the docs.
My answer is wrong. See Re^2: Dancer2 - How to loop over a ref to a HoH from fishmonger.
Actually, according to the documentation, dollar signs are (or can be) used in var interpolation.
Could this solve your issue?
<% FOREACH partner IN partners.values %>
Partner: <% partner.TPCOMPNAME %> <% partner.TPTYPE %><br>
<% END %>
No, that didn't work under either of the template engines.
This is what works when using TT.
[% FOREACH partner IN partners.keys %]
Partner: [% partners.$partner.TPCOMPNAME %] [% partners.$partner.T
[% END %]
A Programming Language, 1962
Programming the 1900 series in COBOL, 1974
Algorithms + Data Structures = Programs, 1976
The C Programming Language, 1978
System V - Interface definition, 1986
Z80 Assembly Language Programming, 1979
TheSOURCE User's Manual, 1979
The C Primer, 1983
Interactive Fortran 77, A Hands on Approach, 1984
Perl.1 man page, 1991
Results (68 votes),