http://qs321.pair.com?node_id=744196

csarid has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I am trying to setup a hash lookup subroutine so I only have to use one lookup mechanism. The issue is that if I set a hash called "%h1" in the following statement $ht="%h1" and try to then have my statement while ($key, $value ) = each($ht) , I get the error "Type of arg 1 to each must be hash (not private variable)" What is the correct way to interpolate this value? Thanks!