Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Hashes & Arrays

by zby (Vicar)
on Aug 29, 2005 at 19:59 UTC ( [id://487532]=note: print w/replies, xml ) Need Help??


in reply to Hashes & Arrays

I don't really understand what is your problem - but reading perldoc perldsc should help you.

And perhaps what can you help as well is playing with the code you posted:

$hash{key}[0]{email} = 'email@email'; $hash{key}[0]{timestamp} = time;
This sets the first element of the array to the hash  {email => 'email@email', timestamp => time} (the {array} in your example seems to be redundant). And to set the second element of the array:
$hash{key}[1]{email} = 'email@email'; $hash{key}[1]{timestamp} = time;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://487532]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found