Programming C# C++ (7) Delphi (617) Java (8) JavaScript (31) perl (9) mysql (3) perl CGI (3) php (4) 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:
|