Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://87239]
help
Chatterbox?
[LanX]: tonterias de patata

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-04-28 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (520 votes). Check out past polls.