perl CGI (65)
Visual Basic (3539)
How to delete entries from a hash (associative array) in perl
5 comments. Current rating: (3 votes). Leave comments and/ or rate it.
Question:I need to remove some elements of my hash in perl. Using undef seems not to work.
How do I do it other than copying every valid element into a target hash?
Answer:Indeed undef will not work.
See the snippets below for a solution of your problem. It involves delete