in reply to autovivication and referencing
A very valuable tool is Data::Dumper that let's you inspect the contents of variables. In your case:
use Data::Dumper; print Dumper \%hash;
will show you that the two scenarios are not the same.
With Data::Dumper you can figure out most of these kind of questions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: autovivication and referencing
by Amblikai (Scribe) on Nov 20, 2013 at 13:37 UTC | |
by hdb (Monsignor) on Nov 20, 2013 at 13:39 UTC | |
by Amblikai (Scribe) on Nov 20, 2013 at 13:53 UTC |