| Programming C# C++ (7) Delphi (604) Java (8) JavaScript (55) perl (40) mysql (3) perl CGI (3) php (12) VBScript (1) Visual Basic (1) |
How to delete entries from a hash (associative array) in perl
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
Comments:
|