Next Program Repair Shop 18

Families of Variables

     113     sub GrabFileList {
     114        opendir (FILELISTDIR1,$InputDIR1);
     115        @FileList1 = readdir (FILELISTDIR1);
     116        closedir (FILELISTDIR1);
     117        opendir (FILELISTDIR2,$InputDIR2);
     118        @FileList2 = readdir (FILELISTDIR2);
     119        closedir (FILELISTDIR2);
     120     }
        sub GrabFileList {
           for my $dir (@InputDIR) {
             opendir (FILELISTDIR,$dir);
             push @FileList, map "$dir/$_", readdir FILELISTDIR;
             closedir FILELISTDIR;
           }
        }


Next Copyright © 2002 M. J. Dominus