http://www.perlmonks.org?node_id=1006457


in reply to How to retrieve element in hash?

It could be a scoping issue--post the continuous chunk of code that encloses the my $recref=... through the assignment and print.