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.
In reply to Re: how to use "delete" with a hash of hash
by smls
in thread how to use "delete" with a hash of hash
by brassbin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |