Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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.

Replies are listed 'Best First'.
Re^2: Move data into AoH
by vitoco (Friar) 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 (Friar) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055530]
[PriNet]: ok, i'm stumped... how do you split a string in javascript when the string was joined with chr(255) in perl ? string.split( String.fromCharCod e(255)); does not work... (help)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-03-24 04:49 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (295 votes). Check out past polls.