Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

(zdog) Re: Extracting array of hashes from data

by zdog (Priest)
on Jun 10, 2001 at 01:33 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://87239]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-03-28 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found