Is there a library to convert an array with padded numbers to a padded range and separated ranges with comma.
For example, I like to convert (0001,0002,0003,011,012,013,015) to "0001-0003,011-013,015". Thanks.
I found something similar http://www.perlmonks.org/?node_id=87538 but it doesn't do padded numbers.