:->( $tmp[0] > $tmp[1] ? sub { push @expanded, reverse ($tmp[1]..$tmp[0]) } : sub { push @expanded, ($tmp[0]..$tmp[1]) } )->();
Makeshifts last the longest.
In reply to Re^2: Expand Ranges in Lists of Numbers (ternary in void context?)
by Aristotle
in thread Expand Ranges in Lists of Numbers
by The Mad Hatter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |