in reply to Re: How do I empty out a hash?
in thread How do I empty out a hash?
Easier yet.
Update: this is, of course, only useful when you want to use delete the keys from one hash in another one, as indelete @hash{(keys %hash)};
Otherwise, only the below solution makes any sense.delete @foo{(keys %bar)};
Makeshifts last the longest.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Answer: How do I empty out a hash?
by Anonymous Monk on Oct 04, 2003 at 16:23 UTC |
In Section
Seekers of Perl Wisdom