Help for this page

Select Code to Download


  1. or download this
    # Sorry about the MANY keyword - I would choose a better name
    # for the secondary data, but I have no clue what would make
    ...
                             MANY => []
                           }
                  );
    
  2. or download this
    for ( @array1 ) {
      my ($id,$name,$ref) = split /,/;
    ...
      }
      push @{$keyhash{$id}{MANY}}, [ $name, $ref ];
    }
    
  3. or download this
    # A little something to get the plurality correct
    for ( keys %keyhash ) {
    ...
        $num,
        $num > 1 ? "times" : "time";
    }