Looking at the POD for Google :: Search , it looks like it expects you to pass Web searches, not URLs. I downloaded the test script from CPAN, ran it, and seemed to give the expected results:
use strict; use warnings; use Google::Search; my $search = Google::Search->Web(q => "rock"); my $result = $search->first; while ($result) { print $result->number, " ", $result->uri, "\n"; $result = $result->next; } print $search->error->reason, "\n" if $search->error; __END__ 0 http:
I understand that this does not specifically answer your question, but perhaps it guides you in the right direction.
source share