Update: Of course this makes use of map in void context. Yick. And a couple other suggestions came in by way of followup:my %hash = ( Carol => 22, Mary => 21, Chris => 30 ); map { delete $hash{$_} } keys %hash;
Arnaud
In reply to Re: How do I empty out a hash?
by arno
in thread How do I empty out a hash?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |