Help for this page

Select Code to Download


  1. or download this
    $hoh->{$id} = { first_number  => $first_num,
                    second_number => $second_num};
    
  2. or download this
    # Retrieve all IDS were first number is 2
    my @ids = grep { $hoh->{$_}->{first_number} == 2 } keys $hoh;