in reply to while condition bubbleSort
use strict; use warnings; my @list2 = sort { $a <=> $b } @list; [download]