http://www.perlmonks.org?node_id=1015780


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.