in reply to help on reference to hash
You seem to want this:
my %my_tcldefs = %{$cliParms->{'tclDefs'}};
Your Data::Dumper dump would be easier to understand if you invoked it like this:
print Dumper \%cliParms;
Then the output would be something like this:
$VAR1 = { 'tcl_defs' => { my_var1 => 'a', my_var2 => 'b' } };
...which makes it more obvious that 'tcl_defs' is a key with a value that consists of a reference to another anonymous hash.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: help on reference to hash
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 | |
|
Re^2: help on reference to hash
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 |