Skip Menu |

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

Report information
The Basics
Id: 8735
Status: resolved
Priority: 0/
Queue: Net-Google

People
Owner: Nobody in particular
Requestors: netgooglespam [...] perlmonkee.com
Cc:
AdminCc:

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



Subject: unblessed reference
OS: linux 2.4.18 Perl version: 5.6.1 Error: Can't call method "estimatedTotalResultsCount" on unblessed reference at ./whore.pl line 12. whore.pl being the example from the docs: my $service = Net::Google->new(key=>LOCAL_GOOGLE_KEY); my $session = $service->search(); $session->query(qw(Perl modules)); my $response = $session->response(); my $total = $response->estimatedTotalResultsCount(); This error occurs when trying to do much of anything with Net::Google::Response
This is not a bug : #http://search.cpan.org/dist/Net-Google/lib/Net/Google/Search.pm#$obj-%3Eresponse() $obj->response() Returns an array ref of Net::Google::Response objects, from which the search response metadata as well as the search results may be obtained. Use this method if you would like to receive a full response as documented in the Google Web APIs Reference (the whole of section 3). [guest - Sat Dec 4 00:50:45 2004]: Show quoted text
> OS: linux 2.4.18 > Perl version: 5.6.1 > > Error: > Can't call method "estimatedTotalResultsCount" on unblessed reference > at ./whore.pl line 12. > > whore.pl being the example from the docs: > > my $service = Net::Google->new(key=>LOCAL_GOOGLE_KEY); > my $session = $service->search(); > > $session->query(qw(Perl modules)); > > my $response = $session->response(); > my $total = $response->estimatedTotalResultsCount(); > > This error occurs when trying to do much of anything with > Net::Google::Response
[ASCOPE - Sat Mar 26 14:58:54 2005]: Regardless, of what you say, the example does not run. Show quoted text
> This is not a bug : > > #http://search.cpan.org/dist/Net-Google/lib/Net/Google/Search.pm#$obj- > %3Eresponse() > > $obj->response() > > Returns an array ref of Net::Google::Response objects, from which the > search response metadata as well as the search results may be > obtained. > > Use this method if you would like to receive a full response as > documented in the Google Web APIs Reference (the whole of section 3). > > [guest - Sat Dec 4 00:50:45 2004]: >
> > OS: linux 2.4.18 > > Perl version: 5.6.1 > > > > Error: > > Can't call method "estimatedTotalResultsCount" on unblessed
> reference
> > at ./whore.pl line 12. > > > > whore.pl being the example from the docs: > > > > my $service = Net::Google->new(key=>LOCAL_GOOGLE_KEY); > > my $session = $service->search(); > > > > $session->query(qw(Perl modules)); > > > > my $response = $session->response(); > > my $total = $response->estimatedTotalResultsCount(); > > > > This error occurs when trying to do much of anything with > > Net::Google::Response
> >
[guest - Sat Mar 26 15:17:02 2005]: Show quoted text
> [ASCOPE - Sat Mar 26 14:58:54 2005]: > > Regardless, of what you say, the example does not run.
It does not run because you are trying to call an object method on an array reference. This is a bug in your Perl code. Show quoted text
> > This is not a bug : > > > > #http://search.cpan.org/dist/Net-Google/lib/Net/Google/Search.pm#$obj- > > %3Eresponse() > > > > $obj->response() > > > > Returns an array ref of Net::Google::Response objects, from which the > > search response metadata as well as the search results may be > > obtained. > > > > Use this method if you would like to receive a full response as > > documented in the Google Web APIs Reference (the whole of section 3). > > > > [guest - Sat Dec 4 00:50:45 2004]: > >
> > > OS: linux 2.4.18 > > > Perl version: 5.6.1 > > > > > > Error: > > > Can't call method "estimatedTotalResultsCount" on unblessed
> > reference
> > > at ./whore.pl line 12. > > > > > > whore.pl being the example from the docs: > > > > > > my $service = Net::Google->new(key=>LOCAL_GOOGLE_KEY); > > > my $session = $service->search(); > > > > > > $session->query(qw(Perl modules)); > > > > > > my $response = $session->response(); > > > my $total = $response->estimatedTotalResultsCount(); > > > > > > This error occurs when trying to do much of anything with > > > Net::Google::Response
> > > >
> >
[ASCOPE - Sat Mar 26 15:26:19 2005]: Show quoted text
> [guest - Sat Mar 26 15:17:02 2005]: >
> > [ASCOPE - Sat Mar 26 14:58:54 2005]: > > > > Regardless, of what you say, the example does not run.
> > It does not run because you are trying to call an object method on an > array reference. This is a bug in your Perl code. >
It's a copy/paste from the documentation.
Fixed - this will be releases sometime in the next week. [guest - Sun Mar 27 16:04:57 2005]: Show quoted text
> [ASCOPE - Sat Mar 26 15:26:19 2005]: >
> > [guest - Sat Mar 26 15:17:02 2005]: > >
> > > [ASCOPE - Sat Mar 26 14:58:54 2005]: > > > > > > Regardless, of what you say, the example does not run.
> > > > It does not run because you are trying to call an object method on an > > array reference. This is a bug in your Perl code. > >
> > It's a copy/paste from the documentation.