Next Program Repair Shop 72

Higher-order functions

while (my $first_file = shift @file_list) {

        my (@dups_found) = $first_file;
        my (@not_dups);
        foreach my $filenm (@file_list)
            if (SOME COMPARISON) == 0)
                push @dups_found, $filenm;
            else
                push @not_dups, $filenm;
        push @fc_LoL , \@dups_found
            if @dups_found > 1;
        @file_list = @not_dups;  # continue searching the non-matched files

}
return @fc_LoL;


Next Copyright © 2006 M. J. Dominus