in reply to (jeffa) Re: Expand Ranges in Lists of Numbers
in thread Expand Ranges in Lists of Numbers

( $tmp[0] > $tmp[1] ? sub { push @expanded, reverse ($tmp[1]..$tmp[0]) } : sub { push @expanded, ($tmp[0]..$tmp[1]) } )->();
:->

Makeshifts last the longest.

  • Comment on Re^2: Expand Ranges in Lists of Numbers (ternary in void context?)
  • Download Code