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

Re^3: Templates and hash arrays?

by keszler (Priest)
on Sep 13, 2011 at 14:40 UTC ( [id://925713]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Templates and hash arrays?
in thread Templates and hash arrays?

OK - I assumed that the e2event in your foreach was the e2event value from the $VAR1 dumped.

[% FOREACH element IN VAR1.e2event %] [% element.e2eventname %] [% END %]

Replace VAR1 with the actual variable you dumped.

To see how the template sees your variable:

[% USE Dumper indent=2 %] [% Dumper.dump(some_variable) %]

Replies are listed 'Best First'.
Re^4: Templates and hash arrays?
by packetstormer (Monk) on Sep 13, 2011 at 15:04 UTC

    That's it! - thanks!

    The dump I submitted is actually from the Dumper.dump within Templates. However, I just find it so hard to get my head around these things!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-28 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found