mpapec
  • Member for 8 years
  • Last seen this week
Stats
131
reputation
1k
reached
1
answer
0
questions
Communities
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
Badges
This user doesn’t have any gold badges yet.
This user doesn’t have any silver badges yet.
6
bronze badges
Top tags
3
Score
1
Posts
100
Posts %
3
Score
1
Posts
100
Posts %
3
Score
1
Posts
100
Posts %