in reply to max .. min does not work

I seem to recall that range semantics are implemented in terms of ++, so this:
for ($a .. $b) { ... }

Should be roughly equivalent to

for ($_ = $a; $_ <= $b; $_++) { ... }

You see that with ($a, $b) = (5, 1) the body of the loop won't be executed. (For strings the comparison is le, not <=, I think).

(update: added ++ where appropriate, Fletch++)