Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 the monks are chillaxin'...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-05-26 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?