Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

RE: How can I improve this?

by ferrency (Deacon)
on Jul 25, 2000 at 07:31 UTC ( #24239=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $a (0..@a) {
      for my $b (0..@b) {
    ...
    
    # Now sort according to the number of zeros
    return sort {$permutation{$a} <=> $permutation{$b}} keys %permutation;
    
  2. or download this
    return sort {$permutation{$a} <=> $permutation{$b} ||
                 $a cmp $b} keys %permutation;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://24239]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2017-02-24 22:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (363 votes). Check out past polls.