You can simplify the problem by inverting the hash:
That takes care of finding all the keys that match an rgnnnn value. Now all you need to do is loop over the numbers for each rg key, deciding what to print.my %rg; for (sort { $a<=>$b } keys %numbers ) { push @{$rg{$_}}, $_; }
After Compline,
Zaxo
In reply to Re: summarization of list
by Zaxo
in thread summarization of list
by gman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |