in reply to do 45-47 to array 45,46,47

Shortest code is best code! Use Set::IntSpan to handle your newsrc intspans.
Set::IntSpan->new('45-48, 88-99, 102-124')->elements
Return value is the list:
( 45, 46, 47, 48, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, )

Replies are listed 'Best First'.
Re^2: do 45-47 to array 45,46,47
by marto (Cardinal) on Jul 01, 2013 at 14:58 UTC

    "Shortest code is best code!"

    I guess that depends on what you consider the totlal count of lines to be. The module you use is 2737 lines long ;)