Thread Sort() (10 answers)
Opened by taikahn22a at 2008-05-08 22:02

FIFO
 2008-05-08 23:08
#109470 #109470
User since
2005-06-01
469 Artikel
BenutzerIn

user image
[edit] NICHT LESEN, IST KOMPLETTER UNFUG[/edit]

Oops, da fehlte noch das '=' nach dem '%', vor lauter Schlaumeierei, versuch mal
Code (perl): (dl )
my @array3 = sort { $a <=> $b } map { $_ %= 5 } @array;
Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? -- Brian Kernighan: "The Elements of Programming Style"

View full thread Sort()