Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Hashes & Arrays

by Joost (Canon)
on Aug 29, 2005 at 19:56 UTC ( [id://487530]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash = (       # declare top-level hash
       key => []       # create new empty arrayref with key "key"
    ...
    # that will allow you to get at the first email address
    # with the following code:
    my $email = $hash{key}[0]{email};
    
  2. or download this
    my %hash = ( key => { array => [] } );
    push @{$hash{key}{array}}, {
       email => 'email@address',
       timestamp => time
    };
    

Log In?
Username:
Password:

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

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

    No recent polls found