in reply to Convert an array of numbers into a range

you can also find Perl Module for dealing with number ranges interesting to read

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.