in reply to Re^3: help on reference to hash
in thread help on reference to hash

Hi Dave,

that is not the reason. Original design is tclDefs and I'm sure I matched the name in original reference. I guess there maybe other reasons, but I can't find it. thanks.

Replies are listed 'Best First'.
Re^5: help on reference to hash
by AppleFritter (Vicar) on Jun 21, 2014 at 10:44 UTC

    In that case I'm not sure. The following works for me:

    #!/usr/bin/perl use feature qw(say); use Data::Dumper; $cliParms = { 'tcl_defs' => { my_var1 => 'a', my_var2 => 'b' } }; my %my_tcldefs = %{$cliParms->{'tcl_defs'}}; say Dumper(\%my_tcldefs);

    Could you post the code that's currently failing for you?

    P.S. I'm not Dave (davido).