|
|
| "be consistent" | |
| PerlMonks |
better way delete comma separated hash values?by lamp (Chaplain) |
| on Sep 29, 2008 at 11:48 UTC ( [id://714325]=perlquestion: print w/replies, xml ) | Need Help?? |
|
lamp has asked for the wisdom of the Perl Monks concerning the following question:
While optimizing an application I found the following code snippet, which is deleting comma separated hash value. Here is what the code is doing: Also delete '%new_reports' hash key, If no value exist for that particular key. Here is the Dumper output before deleting. Dumper output after deleting
Code taken from the original application.
Is there any better way to acheive the same? --lamp
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||