in reply to Re: Copy of an anonymous hash?
in thread Copy of an anonymous hash?

I believe
my $new_element = \%{$hash_array[$index]};
would also work. (Right?)

UPDATE: I meant, my referencing syntax would work as well as hollis. This is right... right?

Replies are listed 'Best First'.
Re^3: Copy of an anonymous hash?
by Fletch (Bishop) on Apr 26, 2005 at 15:04 UTC

    Nope, it'll still point to the same underlying hash.

    freebie:~ 702> perl -le '$a={qw(a b)};$b=\%{$a};print "$a\t$b"' HASH(0x804c844) HASH(0x804c844)