Help for this page

Select Code to Download


  1. or download this
    my %Y;
    while (<>) {
    ...
          foreach (@ARGV) { $Y{$y}++,next if $y eq $_;  }
      } else { $Y{$y}++ }
    }
    
  2. or download this
    scalar @ARGV ? $Y{$y} += @ARGV : $Y{$y}++;
    
  3. or download this
    foreach (@ARGV) { next if $y eq $_; # don't count any occurrences of
                                        # $y
                      $Y{$y}++,
                    }