Help for this page

Select Code to Download


  1. or download this
    my %People;
    while(  my $id= GetNextId()  ) {
    ...
    foreach my $person (  @{ $People{AGE}{20} }  ) {
        print "\t",$person->{NAME},"\n";
    }
    
  2. or download this
    print "(The first) John Smith is ",
      "$People{ByNAME}{'John Smith'}[0]{AGE} years old.\n";
    
  3. or download this
    my $byID= $People{ID};
    foreach my $person (  @$byID  ) {
    }