On Oct 20, Ing. Branislav Gerzo said:
use strict;
use warnings;
use Net::Google;
[snip]
my $response = $session->response();
I dumped response, and beginning is:
$VAR1 = [
bless( {
Stop right there! See the [ at the beginning of the dumped representation
of $response? That means $response is an array reference. It *holds*
objects, but it isn't an object itself.
my $response = $session->response();
for my $r (@$response) {
print $r->estimatedTotalResultsCount, "\n";
}
It appears there's a mistake in the module's documentation! Let the
author know. :)
--
Jeff "japhy" Pinyan % How can we ever be the sold short or
RPI Acacia Brother #734 % the cheated, we who for every service
http://www.perlmonks.org/ % have long ago been overpaid?
http://princeton.pm.org/ % -- Meister Eckhart
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>