http://www.perlmonks.org?node_id=132995


in reply to TMTOWTDI Puzzle: Generating a range of numbers

You cannot use any digit [0-9] in your code

Which says nothing about the input. Sometimes the simplest solutions are the best...

perl -le '@nToM=(shift..shift); print join(",",@nToM);' 1 10