in reply to max .. min does not work
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++)
|
|---|