Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Sort - can't

by QM (Parson)
on Aug 29, 2005 at 01:30 UTC ( [id://487318]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ($sub1, $sub2, $sub3) = split (/\_/, @array,3);
    
  2. or download this
    while my $elem (@array)
    {
      ($sub1,$sub2,$sub3) = split(/_/, $elem, 3);
      # do something here...
    }
    
  3. or download this
    $sub3 = sort { $b <=> $a } $sub3;
    
  4. or download this
    my @a2;
    while my $elem (@array)
    ...
      push @a2, \@fields;
    }
    my @a3 = sort { $b->[2] <=> $a->[2]} @a2;
    

Log In?
Username:
Password:

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

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

    No recent polls found