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

Re: how to use "delete" with a hash of hash

by smls (Friar)
on Jan 29, 2013 at 00:36 UTC ( #1015780=note: print w/ replies, xml ) Need Help??


in reply to how to use "delete" with a hash of hash

It's

  delete $hoh{item2};

not

  delete $hoh{$item2};

and it does do what you request - it deletes the key "item2" from the top-level hash.


Comment on Re: how to use "delete" with a hash of hash
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (13)
As of 2014-07-10 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (213 votes), past polls