Skip Menu |

This queue is for tickets about the WWW-Google-PageRank CPAN distribution.

Report information
The Basics
Id: 69004
Status: rejected
Priority: 0/
Queue: WWW-Google-PageRank

People
Owner: Nobody in particular
Requestors: CKFULTON [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.
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;
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.