Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 surveying the Monastery: (12)
As of 2014-08-01 14:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (25 votes), past polls