perl -slwE 'say $_ for 0..$N-2; printf "from %d to %d\n", $N-1, $M' -- -N=5 -M=9999997