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