Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Predefined Sort

by krusty (Hermit)
on Jun 20, 2008 at 16:30 UTC ( #693183=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    foreach $element (@dports) {
    ...
      print "$key\n" x $count_hash{$key} if $count_hash{$key};
    }
    
  2. or download this
          my @sorted = sort {$b <=> $a} @dports;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2015-07-06 23:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (85 votes), past polls