nandymamith has asked for the wisdom of the Perl Monks concerning the following question:
What if I have to remove a particular hash entry. For example, from the below code I want to remove the hash having the keys {'2'}, {'0'}, and so on. I don't want the hash entries where single digit numbers are keys
%hash = { abc => { def => 1, ghi => 2, jkl => 3, }, mno => { pqr => 4, stu => 3, vwx => 5, }, 2 => { def => 5, stu => 2, }, 0 => { def => 3, stu => 1, }, };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Deleting hash entry
by haukex (Archbishop) on May 12, 2017 at 07:09 UTC | |
|
Re: Deleting hash entry
by Laurent_R (Canon) on May 12, 2017 at 22:15 UTC | |
by Marshall (Canon) on May 13, 2017 at 00:28 UTC | |
by Laurent_R (Canon) on May 13, 2017 at 15:34 UTC | |
|
Re: Deleting hash entry
by johngg (Canon) on May 12, 2017 at 20:34 UTC |