Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Why doesn't this code run?

by AnomalousMonk (Archbishop)
on Jun 03, 2017 at 17:36 UTC ( [id://1192067]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Why doesn't this code run?
in thread Why doesn't this code run?

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:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^4: Why doesn't this code run?
by WizardOfPerl (Novice) on Jun 03, 2017 at 20:40 UTC

    Sorry about the bad code and the confusion, don't worry about a solution.

    I'm reworking the sorting code, and looking into the built in sort function.

    Thanks for the tip!

Re^4: Why doesn't this code run?
by Anonymous Monk on Jun 06, 2017 at 14:54 UTC
    You really should check out that code, though. The Big Ugly Ascii Font action is hilarious.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1192067]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-20 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found