Next Program Repair Shop 6

Classifying files

        chomp(@ARGV = <STDIN>) unless @ARGV;
        undef $/;
        for my $file (@ARGV) {
          unless (open F, "<", $file) {
            warn "$file: $!; skipping\n;  next;
          }
          push @{$files{<F>}}, $file;
        }

Next Copyright © 2006 M. J. Dominus