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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://24239]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-19 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found