Thread einträge zählen
(10 answers)
Opened by micneu at 2013-03-04 13:27
ganz vereinfacht "übersetzt":
Code (perl): (dl
)
1 2 3 4 5 6 7 8 my %w; while (my $line = <>) { my $key = (split /:|\n/,$line)[-1]; ++$w{$key}; } for my $key (sort { $w{$a} <=> $w{$b} } keys %w) { say "$key: $w{$key}" } |