Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Sorting issues

by zeidrik (Scribe)
on May 28, 2001 at 15:08 UTC ( #83717=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    1 2 3 |10
    a b c |20
    e f g |100
    x n f |1
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
     map {/\|(\d+)/; $H{$1}=$_ if $1}<R>;
    close(R);
     foreach (sort {$a<=>$b} keys %H){print $H{$_}}
    
  3. or download this
    x n f |1
    1 2 3 |10
    a b c |20
    e f g |100
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83717]
help
Chatterbox?
erix is always in favour of code-revolutions
[Lady_Aleena]: Well, right now, I"m looking at modules where I put randomness that aren't in my RolePlaying/Random dir, like RolePlaying:: Character:: Alignment that is mostly about random_alignment than expand_alignment.
[erix]: cute

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-05-27 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?