|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Deleting undef values from a hashby pg (Canon) |
| on Dec 14, 2003 at 05:04 UTC ( #314616=note: print w/ replies, xml ) | Need Help?? |
|
This is probably the best result you can expect for now. Ideally, in the world of modern computing, if you delete an element that does not exist, some sort of exception can be threw. Now, the two different cases become clearly distiguished:
For now, if you want to clearly distiguish the two cases (if there is a need), use exists() to check first, and only delete when the element really exists.
In Section
Meditations
|
|
||||||||||||||||||||