my @match = grep { $SOCCalc >= $_ } keys %$dischargelookuphash;
If you want to frequently extract ranges from a structure, hash is probably not the best tool for the job. A heap or a tree might serve you better.
In reply to Re: Hash Lookup
by choroba
in thread Hash Lookup
by eagle504
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |