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


in reply to Help with hash reference mystery...

Your code is not doing what you think it's doing. You should change the code from -
print Dumper(%$hash{'output'});
to
print Dumper(%{$hash{'output'}});
Because in the original code you were actually dereferencing %{$hash}{'output'}, where the $hash variable was not defined (you defined %hash earlier, but not $hash).

Add use strict; to the start of your code and you will get a compilation error.