Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Stupid, yet simple, sort question

by jeroenes (Priest)
on Oct 24, 2001 at 21:32 UTC ( [id://121205]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @sorted_keys = sort { $HoH{$b}{'number'} <=> $HoH{$a}->{'number'} } ke
    +ys %HoH;
    
  2. or download this
    open(FILE,$log);
    flock (FILE,3);
    @users=<FILE>;
    ...
    foreach $loc (@locations){
    print "${$loc}{online} ${$loc}{users} $loc\n";
    }
    
  3. or download this
    use strict;
    use warnings;
    ...
      my $href = $locations{$loc};
      print $href->{'online'}." ".$href->{'usertext'}."$loc\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found