in reply to Getting values from hash

$result is not a hash reference. It's an array reference, note the outermost square brackets. Access first the array index, then the hash key, thus:
for my $search (@{ $result->[0]{trends} })

Replies are listed 'Best First'.
Re^2: Getting values from hash
by danny0085 (Sexton) on Apr 26, 2012 at 14:28 UTC

    Thank you so much, it worked fine.

    Every day I learn a bit more about perl thanks to gurus like you :)