Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Of course, I've noticed that this just makes $new_element a reference to the same anonymous hash. What is the best way to make $new_element be a reference to an anonymous hash with the same data as the anonymous hash in $hash_array$index, so that I may splice it in?my $new_element = $hash_array[$index];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Copy of an anonymous hash?
by holli (Abbot) on Apr 26, 2005 at 07:33 UTC | |
by DrHyde (Prior) on Apr 26, 2005 at 09:37 UTC | |
by tphyahoo (Vicar) on Apr 26, 2005 at 14:16 UTC | |
by Fletch (Bishop) on Apr 26, 2005 at 15:04 UTC | |
|
Re: Copy of an anonymous hash?
by pelagic (Priest) on Apr 26, 2005 at 11:42 UTC | |
by salva (Canon) on Apr 26, 2005 at 12:18 UTC | |
by pelagic (Priest) on Apr 26, 2005 at 12:29 UTC | |
by ambrus (Abbot) on Apr 26, 2005 at 19:47 UTC |