Help for this page

Select Code to Download


  1. or download this
    sub comb_sort (&\@) {
        my $code_ref = shift;
    ...
            last if $gap == 1 and $swapped == 0;
        }
    }
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    comb_sort {$a<=>$b} @v;
    print "@v";