Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Simple bubble sort

by clintp (Curate)
on Sep 20, 2001 at 05:45 UTC ( [id://113512]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
         my $temp = @$array[$index + 1];
         @$array[$index + 1] = @$array[$index];
         @$array[$index] = $temp;
    
  2. or download this
         t=a;
         a=b;
         b=t;
    
  3. or download this
         (a,b)=(b,a);
    
  4. or download this
     ($array->[$i+1],$array->[$i])=
             ($array->[$i],$array->[$i+1]);
    

Log In?
Username:
Password:

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

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

    No recent polls found