Hi!
You should use:
delete $hash{$a}
This removes the key/value pair. undef only sets the key's value to the undefined value.
Michele.
In reply to Re: 'undef'ing a hash element
by arthas
in thread 'undef'ing a hash element
by Deda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |