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
    };