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


in reply to mysterious hash ref result

One thing you should not be doing is using $a, that is a special variable that Perl uses. As for the rest of it, there is not enough information for me to understand what is going on for me to help debug it.