|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
how to use "delete" with a hash of hashby brassbin (Novice) |
| on Jan 29, 2013 at 00:13 UTC ( #1015779=perlquestion: print w/ replies, xml ) | Need Help?? |
|
brassbin has asked for the
wisdom of the Perl Monks concerning the following question:
hi, i have a hash of hash like this
this call of delete delete $hoh{$item2}deletes the sub-level hash but it does not delete the top level key "item2" itself, how do i delete the key "item2" itself after deleting the sub hash below it? Thank you very much!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||