Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Move data into AoH

by ww (Bishop)
on Sep 24, 2013 at 19:41 UTC ( #1055530=note: print w/ replies, xml ) Need Help??


in reply to Move data into AoH

Why an AoH? Why not a simple hash?

But to answer your question, yes, "there (is) a simple way...."

The how-to will be found at Data Type: Hash

Study there, and if you get stuck, come back with the code you've written, the error and warning messages, and any narrative explication that you wish.


Comment on Re: Move data into AoH
Re^2: Move data into AoH
by vitoco (Pilgrim) on Sep 24, 2013 at 19:49 UTC

    Why an AoH? Why not a simple hash?

    Because it is an array... I edited the OP ;-)

Re^2: Move data into AoH
by vitoco (Pilgrim) on Sep 24, 2013 at 20:36 UTC

    BTW, I edited only the numbered sequence of values from the example... the [] and {} remained the same.

    Also, some of the fields may or may not be present in a record.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2014-07-14 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (260 votes), past polls