Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    
    ...
    print "\n";
    print "($number, $_)\n" for (@{$combinations{$number}}[0..$quantity-1]
    +);
    }
    
  2. or download this
    $combinations{$number}=[sort {$combinations{$number}{$b} <=> $combinat
    +ions{$number}{$a}} (keys %{$combinations{$number}})];