Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    
    ...
    @b[sort{$a[$b]{total}<=>$a[$a]{total}}1..$#a] = 1..$#a;
    
    print Dumper(\@b);
    
  2. or download this
    $VAR1 = [
              undef,   # this is ignored because index begins at 1
    ...
              4,
              3
            ];