Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015780]
help
Chatterbox?
LanX sigh ... pitty I'm not a girl ... missing out on so many things
LanX ... or is it "boying out" ?
[choroba]: RELEASE_TESTING=1 for Module::Starter based distributions
LanX ..."mistering out" ?
[talexb]: choroba AH! Thanks so much.
[choroba]: prove -bl xt in some others
[talexb]: OK, major issues with MANIFEST .. this'll take me a while.

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2017-10-23 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (279 votes). Check out past polls.

    Notices?