Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: array of hashes

by punkish (Priest)
on Dec 06, 2010 at 02:36 UTC ( #875539=note: print w/ replies, xml ) Need Help??

in reply to array of hashes

@a = ( {a => "ford", b => "red", c => "dog"}, {a => "honda", b => "blue", c => "cat"}, {a => "dodge", b => "orange", c => "spider"} ); say "$a[0]{a}, $a[1]{a}"

Other than that, shortening it doesn't achieve much. Unless, of course, there is more to this question than you are revealing.


when small people start casting long shadows, it is time to go to bed

Comment on Re: array of hashes
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2015-07-02 12:37 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (36 votes), past polls