in reply to Converting String Containing Ranges to Array

my @a; push @a, /\.\./ ? do{ my($lo,$hi) = split'\.\.'; $lo..$hi} : $_ for split',', $string; print @a;; ##or my @a = map{ /\.\./ ? do{ my( $lo,$hi ) = split '\.\.'; $lo .. $hi } : $_ } split ',', $string; print @a;;

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy