Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-12-28 19:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls