UPDATE: Everything I know about referencing/dereferencing came from here: http://www.thegeekstuff.com/2010/06/perl-array-reference-examples/
I\'m working with a library
If @$result is an array then your LHS must be a list. Otherwise $hashref will be assigned the array size.
@$result
$hashref
my ($hash_ref) = @{ $result}; print Dump($hash_ref));