in reply to 'undef'ing a hash element
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: 'undef'ing a hash element
by welchavw (Pilgrim) on Aug 26, 2003 at 13:49 UTC |
In Section
Seekers of Perl Wisdom