Help for this page

Select Code to Download


  1. or download this
    while(my($key,$val) = each(%ret)) {
      my @parts = split(/\./, $key);
      my $id = '';
      foreach my $add (@parts) {
    
  2. or download this
        $id .= $add;
    
  3. or download this
        if($id eq $key) {
          next;
        }
    
  4. or download this
        if(!$ret{$id}{'count'}) {
          $ret{$id}{'count'} = 0;
    ...
      }
    
    }
    
  5. or download this
    while(my($key,$val) = each(%ret)) {
        $id = $key;
    ...
    ## Though this doesn't do much?
        $ret{$id}{'count'} += $ret{$key}{'count'};
    }
    
  6. or download this
    my @keys = sort keys %cats;
    my $cnt = scalar @keys;
    ...
    ...
    @keys = keys %ret;
    $cnt = scalar @keys;
    
  7. or download this
    my $cnt = keys %cat;
    ...
    $cnt = keys %ids;
    ...
    $cnt = keys %ret;