Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 wandering the Monastery: (5)
As of 2014-09-23 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (209 votes), past polls