Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Copying multi-level hash

by mt2k (Hermit)
on Mar 08, 2001 at 04:15 UTC ( [id://62881]=note: print w/replies, xml ) Need Help??


in reply to Copying multi-level hash

Crap, that's all wrong...
I don't want to create a reference, I want to copy the hash section...
Sorry if I wasn't very clear on that...

I know to get rid of the backslash in that one place, but I have no idea what to do with the %{$hash} part

Replies are listed 'Best First'.
Re: Re: Copying multi-level hash
by dvergin (Monsignor) on Mar 08, 2001 at 06:17 UTC
    Give the way you get:   ;-)
    %temp = %{$hash{key1}{1}}; then later: %{$hash{key1}{1}} = %temp;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 01:41 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found