I thought should solve your problem (unless bubble sort is kind of a exercise that you need to do).use strict; use warnings; my @list2 = sort { $a <=> $b } @list;
In reply to Re^2: while condition bubbleSort
by eosbuddy
in thread while condition bubbleSort
by santosh_br
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |