in reply to Hash manipulation

Hashes don't have a clear ordering, so I'm not sure what you want to do. If you are saying you want to remove the hash entries for the first three keys as sorted in alphabetical order(?), you might do it like this.
delete $hash{$_} for (sort keys %hash)[0..2];

-- Mike

--
just,my${.02}

Replies are listed 'Best First'.
Re: Re: Hash manipulation
by jdporter (Paladin) on Nov 15, 2002 at 05:04 UTC