in reply to Why do we need $a and $b to be special?
$ perl -we'sub evenfirst ($$) { ($_[0]&1) <=> ($_[1]&1) or $_[0] <=> $ +_[1] } print sort evenfirst 0..9' 0246813579
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why do we need $a and $b to be special?
by rinceWind (Monsignor) on Aug 01, 2004 at 09:29 UTC | |
by adrianh (Chancellor) on Aug 01, 2004 at 10:38 UTC | |
by ysth (Canon) on Aug 01, 2004 at 09:34 UTC |