Thread einträge zählen (10 answers)
Opened by micneu at 2013-03-04 13:27

GwenDragon
 2013-03-04 14:29
#166211 #166211
User since
2005-01-17
14760 Artikel
Admin1
[Homepage]
user image
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}" 
}

View full thread einträge zählen