Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Nested HTML::Template Loops

by bwana147 (Pilgrim)
on Jun 26, 2003 at 10:09 UTC ( [id://269169]=note: print w/replies, xml ) Need Help??


in reply to Re: Nested HTML::Template Loops
in thread Nested HTML::Template Loops

You can't use $_ in a <TMPL_LOOP>, but you can use map to turn a flat list into a list of hashes:

'sub_sections' => [ map {{ 'sub_section_name' => $_ }} 'Foo part 1', 'Foo part 2', 'Fo +o part 3' ],

--bwana147

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://269169]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-19 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found