Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: removing an element of a array which is element of hashby merlyn (Sage) |
on Nov 16, 2005 at 14:29 UTC ( [id://509049]=note: print w/replies, xml ) | Need Help?? |
Since you didn't tell me the name of your top hash, I'm calling it %UNNAMED_TOP_THINGY in the following code:
I also don't know from your example whether you want to (a) remove all "warning" (which is my code) or (b) keep all "error". It would be better if you had a better example, or a text description of what you had wanted. I mean, based on your example, this would also have worked: But I doubt that would have satisfied you. {grin} -- Randal L. Schwartz, Perl hacker
update: Aha... see, I would have never thought that you wanted items with column = 1 removed. OK, here's that:
In Section
Seekers of Perl Wisdom
|
|