Andy wrote:
HI, Whoops, had $_[0] instead of $i
Try this:
Code:
sub { # GooglePR
my $tbl = $DB->table('Links');
my @counts;
for (my $i = 0; $i <= 10; $i++) {
my $count = $tbl->count( { GooglePR => $i } );
my $tmp;
$tmp->{PR} = $i;
$tmp->{Count} = $count;
push @counts, $tmp;
}
return { google_pr_counts => \@counts }
}
I'm using this global to display stats for pagerank links in my database.
Now, when I count all links with all PR (pr0+pr1+pr2+pr3+...+pr10), that number is different from total number of links in database.
UnReal Network