Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: Array sort - kind of...

by demerphq (Chancellor)
on Feb 04, 2002 at 11:16 UTC ( [id://143208]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $min_i = 0;
    foreach my $i (1..$#array) {
      $min_i = $i if $array[$i]->[2] < $array[$min_i]->[2];
    }
    
  2. or download this
    my $index=0;
    $array[$_][2]<$array[$index][2] && ($index=$_)
       foreach 1..$#array;
    

Log In?
Username:
Password:

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

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

    No recent polls found