Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Sort - can't

by QM (Parson)
on Aug 29, 2005 at 01:30 UTC ( #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
Node Status?
node history
Node Type: note [id://487318]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2020-11-28 23:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?