Any idea how to make the bubble sort work?
I'm sure lots of monks here have ideas about how to make a bubble-sort work, but the whole idea of using a bubble-sort rather than, e.g., the built-in sort is to learn about looping constructs, comparison operators, etc. Can you please post a short example of your non-working code (please see Short, Self-Contained, Correct Example) so we can comment?
It doesn't right now.
To restate the previous point, I don't see any bubble-sort right now. Rather than re-directing us to another site, please post code.
Update: You might want to take a look at the perlfaq4 FAQ "How do I sort an array by (anything)?" and at List Processing, Filtering, and Sorting in our Tutorials.
Give a man a fish: <%-{-{-{-<
In reply to Re^3: Why doesn't this code run?
by AnomalousMonk
in thread Why doesn't this code run?
by WizardOfPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |