Skip to main content
mpapec's user avatar
mpapec's user avatar
mpapec's user avatar
mpapec
  • Member for 12 years, 9 months
  • Last seen more than 1 year ago

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
This user doesn’t have any gold badges yet.
3
silver badges
13
bronze badges
16
Score
5
Posts
83
Posts %
16
Score
2
Posts
33
Posts %
16
Score
1
Posts
17
Posts %
0
Score
3
Posts
50
Posts %
0
Score
2
Posts
33
Posts %
0
Score
1
Posts
17
Posts %