mpapec
  • Member for 8 years, 1 month
  • Last seen more than a month ago
Stats
949
reputation
156k
reached
5
answers
21
questions
Loading…
About

Users with best score/answer ratio

perl -MpQuery -MData::Dumper -e '*Q = *pQuery;
print Dumper map [
    sort { $b->{ratio} <=> $a->{ratio} }
    map {
        @h{qw(s a u)} = map Q($_)->text,
          @{ Q($_)->find("td") };
        s/k// and $_ *= 1000 for @h{qw(s a)};
        $h{ratio} = $h{s}/$h{a};
        +{%h};
    } @{ Q($_)->find("tr") }
], @{ Q(pop)->find(".fl") }[0,1];
' http://stackoverflow.com/tags/perl/topusers
2
gold badges
9
silver badges
21
bronze badges
8
Score
2
Posts
8
Posts %
2
Score
10
Posts
38
Posts %
2
Score
3
Posts
12
Posts %
2
Score
3
Posts
12
Posts %
1
Score
4
Posts
15
Posts %
1
Score
2
Posts
8
Posts %
Top posts
View all questions and answers