in reply to I have a hash in a hash in a .....
The read-only result is in $r after the following snippet executes:
my $r = $my_hash_ref; $r = $r->{$_} foreach @k;
The read-write result is in $$p after the following snippet executes:
my $p = \$my_hash_ref; $p = \($$p->{$_}) foreach @k;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I have a hash in a hash in a .....
by brian_d_foy (Abbot) on Feb 21, 2006 at 20:14 UTC | |
by ikegami (Patriarch) on Feb 21, 2006 at 20:37 UTC | |
by brian_d_foy (Abbot) on Feb 21, 2006 at 20:50 UTC | |
by ikegami (Patriarch) on Feb 21, 2006 at 20:57 UTC |