Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^2: Copy of an anonymous hash?

by tphyahoo (Vicar)
on Apr 26, 2005 at 14:16 UTC ( #451580=note: print w/replies, xml ) Need Help??

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)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://451580]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2023-03-26 02:22 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (63 votes). Check out past polls.