go ahead... be a heretic | |
PerlMonks |
Re^5: How do i sort an numeric array without using sort function. Is ther any way to sort it just with loop in perl??by Random_Walk (Prior) |
on Nov 02, 2017 at 11:22 UTC ( [id://1202602]=note: print w/replies, xml ) | Need Help?? |
You may want to think a little about the sorting algorithm used. Gnome sort is an example of a stunningly bad way to sort. Now you have a working example, have a quick google and look for better ways. I'm sure we can help with any attempts to code other methods. Cheers,
Pereant, qui ante nos nostra dixerunt!
In Section
Seekers of Perl Wisdom
|
|