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 -
Add use strict; to the start of your code and you will get a compilation error.
toprint 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).print Dumper(%{$hash{'output'}});
Add use strict; to the start of your code and you will get a compilation error.
|
---|
In Section
Seekers of Perl Wisdom