in reply to array of hash
Update: Now I see it! You don't use strict (refs).
print Dumper $curr{my}[2], $curr{my}[2]{AB}, \%CD;
outputs
$VAR1 = 'CD'; $VAR2 = 1; $VAR3 = { 'AB' => 1 };
See Can you use string as a HASH ref while "strict refs" in use? for an explanation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: array of hash
by carolw (Sexton) on May 27, 2014 at 10:54 UTC | |
by choroba (Cardinal) on May 27, 2014 at 11:00 UTC | |
by carolw (Sexton) on May 27, 2014 at 11:18 UTC | |
by choroba (Cardinal) on May 27, 2014 at 11:26 UTC | |
by carolw (Sexton) on May 27, 2014 at 11:45 UTC | |
by choroba (Cardinal) on May 27, 2014 at 12:28 UTC | |
by carolw (Sexton) on May 27, 2014 at 12:37 UTC | |
by choroba (Cardinal) on May 27, 2014 at 12:42 UTC | |
by carolw (Sexton) on May 27, 2014 at 12:31 UTC | |
by carolw (Sexton) on May 27, 2014 at 12:51 UTC | |
|
Re^2: array of hash
by carolw (Sexton) on May 27, 2014 at 10:59 UTC |