Grant <mailto:[EMAIL PROTECTED]> wrote:
: I've got an array returned from Google's API and I need to
: get the data out of it. The best I can do right now is:
:
: ARRAY(0x8262e088)
:
: Can anyone help me out?
Looks like you are printing a reference to an array. You
can examine all its contents with the Dumper() function from
the Data::Dumper module.
use Data::Dumper 'Dumper';
.
.
.
print Dumper $array_reference;
You can access each element in an array reference with
this.
foreach my $element ( @elements ) {
# process each $element
}
If your reference is a complex data structure, you'll
want read the 'perldsc' file in your perl documentation
before asking more detailed questions.
HTH,
Charles K. Clarkson
--
Mobile Homes Specialist
254 968-8328
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>