You may be interested in Set::IntSpan from CPAN which will read your sample data format ("5,6,8-53,62-106") directly.
In reply to Re: How do I efficiently predeclare a hash with a set of keys
by Fletch
in thread How do I efficiently predeclare a hash with a set of keys
by lupey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |