in reply to Re: How do I empty out a hash?
in thread How do I empty out a hash?
which is a little easier on the eye ...#!/usr/bin/perl -w use strict; my %hash = ( Carol => 22, Mary => 21, Chris => 30 ); for (keys %hash){ delete $hash{$_}; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Answer: How do I empty out a hash?
by Aristotle (Chancellor) on Aug 16, 2003 at 18:07 UTC |