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

(zdog) Re: Extracting array of hashes from data

by zdog (Priest)
on Jun 10, 2001 at 01:33 UTC ( #87239=note: print w/ replies, xml ) Need Help??


in reply to Extracting array of hashes from data

You may be looking to do something like this:

$alldata{$key} = \%temphash;

Instead of:

$alldata{$key} = push [ %temphash ];

It sets $alldata{$key} as a reference to %temphash. So the content is accessed using $alldata{$key}{$key2}.

Zenon Zabinski | zdog | zdog7@hotmail.com


Comment on (zdog) Re: Extracting array of hashes from data
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://87239]
help
Chatterbox?
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: (8)
As of 2014-10-25 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (143 votes), past polls