Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Template Toolkit - problem getting data out array - AoHoA

by MidLifeXis (Monsignor)
on Mar 07, 2014 at 19:10 UTC ( [id://1077444]=note: print w/replies, xml ) Need Help??


in reply to Template Toolkit - problem getting data out array - AoHoA

It seems to me that your data structure is a little clumsy for what you are trying to do. You are maintaining two separate arrays of file names. If I were to do this, I would probably use a data structure something like:

$VAR1 = [ { 'filenames' => [ { large => 'fIyvYwJWmstR.jpg', small => 'lAwKmMFJVQDI. +jpg', } ... ], 'pos' => 1, 'title' => 'February event (Feb 2013)', 'link' => 'february-event-feb-2013', 'bookid' => 8, },

HTH.

--MidLifeXis

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-26 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found