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.