RosettaCodeData/Task/Sort-an-integer-array/Perl/sort-an-integer-array.pl
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

2 lines
55 B
Raku

@nums = (2,4,3,1,2);
@sorted = sort {$a <=> $b} @nums;