Tue Jun 21 15:07:41 2011CKFULTON [...] cpan.org - Ticket created
Subject:
Incorrect reporting of 0 PageRank
Instead of reporting a 0 PR it is reporting undef. I would like to tell
the difference between a network problem and an actual 0 value.
Tue Jun 21 15:20:28 2011CKFULTON [...] cpan.org - Correspondence added
On Tue Jun 21 15:07:41 2011, CKFULTON wrote:
Show quoted text
> Instead of reporting a 0 PR it is reporting undef. I would like to tell
> the difference between a network problem and an actual 0 value.
I solve this problem in user space:
my ($current_pr, $responseobject) = $pr->get("http://www.prwatcher.info/");
$current_pr ||= 0 if $responseobject->is_success;
Tue Jun 21 15:20:29 2011CKFULTON [...] cpan.org - Status changed from 'new' to 'open'
Tue Jun 21 17:30:59 2011YKAR [...] cpan.org - Correspondence added
Hi
If you getting "undef" result at the same time with the successful
response it means no pagerank is assigned (so called "gray toolbar value").
It differs from 0 pagerank value. It is common for fresh domains which
has no pagerank value assigned (exported to toolbar). Also you will get
"undef" for some domain which google doesn't know.
Tue Jun 21 17:32:00 2011YKAR [...] cpan.org - Status changed from 'open' to 'rejected'