danny0085 has asked for the wisdom of the Perl Monks concerning the following question:
I am having problems accessing the element name of the trend. I don't know how to do it I tried
for my $search ( @{$result->{trends}} ) but I get the error "Not a HASH reference"
$VAR1 = [ { 'locations' => [ { 'woeid' => 1, 'name' => 'Globales' } ], 'created_at' => '2012-04-26T13:42:24Z', 'trends' => [ { 'events' => undef, 'query' => '%22A%20Picture%20Of%20Me%20Whe +n%20I%20Was%22', 'promoted_content' => undef, 'name' => 'A Picture Of Me When I Was', 'url' => 'http://twitter.com/search/%s%22' }, ], 'as_of' => '2012-04-26T13:46:47Z' } ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting values from hash
by Anonymous Monk on Apr 26, 2012 at 14:20 UTC | |
by danny0085 (Sexton) on Apr 26, 2012 at 14:28 UTC | |
|
Re: Getting values from hash
by Anonymous Monk on Apr 26, 2012 at 18:09 UTC | |
|
Re: Getting values from hash
by Anonymous Monk on Apr 26, 2012 at 14:20 UTC | |
|
Re: Getting values from hash
by FloydATC (Deacon) on Apr 26, 2012 at 17:40 UTC |