skyworld_chen has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a piece of code as this:
my %cliParms; var_b = subA(\%cliParms); print Dumper(%cliParms);
from Dumper, I see cliParms seems to be a hash for hash:
VAR1 = 'tclDefs'; VAR2 = { 'my_var1' => 'a', 'my_var2' => 'b' }
I would like to get value from VAR2, so I wrote code as this:
my %my_tcldefs; %my_tcldefs = $cliParms->{'tclDefs'}; print Dumper(%my_tcldefs);
It seems I failed to get my_tcldefs. Can anybody help me? thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help on reference to hash
by davido (Cardinal) on Jun 21, 2014 at 07:41 UTC | |
by AnomalousMonk (Archbishop) on Jun 21, 2014 at 10:51 UTC | |
by skyworld_chen (Acolyte) on Jun 22, 2014 at 00:44 UTC | |
by AnomalousMonk (Archbishop) on Jun 22, 2014 at 10:29 UTC | |
by skyworld_chen (Acolyte) on Jun 21, 2014 at 08:36 UTC | |
by AppleFritter (Vicar) on Jun 21, 2014 at 09:52 UTC | |
by skyworld_chen (Acolyte) on Jun 21, 2014 at 10:21 UTC | |
by AppleFritter (Vicar) on Jun 21, 2014 at 10:44 UTC |