in reply to TMTOWTDI Puzzle: Generating a range of numbers
Which says nothing about the input. Sometimes the simplest solutions are the best...
perl -le '@nToM=(shift..shift); print join(",",@nToM);' 1 10 [download]