in reply to Re: Removing a certain number of hash keys
in thread Removing a certain number of hash keys
That's the sort of thing I was looking for. Now to complicate matters a bit, I oversimplified my example somewhat. I actually have a hash that looks more like this:
my %hash = ( 100 => 1, 100.1 => 1, 103 => 1, 103.1 => 1, 103.2 => 1, 1 +05 => 1 );
More to the point, the keys will always be nice and sortable, but they won't necessarily be integers and they won't always be consecutive. Is there a way to do some sort of indexing into a hash slice?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Removing a certain number of hash keys
by tye (Sage) on Dec 12, 2000 at 02:48 UTC | |
|
Re: Re: Re: Removing a certain number of hash keys
by Hot Pastrami (Monk) on Dec 12, 2000 at 03:00 UTC |