Help for this page

Select Code to Download


  1. or download this
    for my $key ( keys %hosts ) {
        if ( $hosts{$key} != $table_count ) {
            delete $hosts{$key};
        }
    }
    
  2. or download this
    while ( my ($key,$value) = each %hosts) {
        delete $hosts{$key}
          if $value != $table_count;
    }
    
  3. or download this
    while (($key, $value) = each %hash) {
        print $key, "\n";
        delete $hash{$key};   # This is safe
    }