in reply to max .. min does not work

Because the range operator requires that the left operand is greater than the right operand. To count down, use reverse:

perl -e 'for (reverse 1..5) {print "$_\n"};'

Update: The left operand must be less than the right operand... :(