Next Program Repair Shop 220

Families of Variable Names

     while (<INFILE2>) {
       chomp;
       $ct_scanout = 1 if (/apply\s*\"grp[0-9]_unload\"/);
       $chain_test=1  if (/CHAIN_TEST/);
       if (( /\t*chain\s+\"chain([0-9])\"/) && ($chain_test)) {
         $chain_number = $1;
         &cleanup;
         $chain_input = (split /=/,$_)[1];
         $chain_input =~ tr/\"//d;
         $chain[$chain_number] = [split //, $chain_input];
         &printout if $chain_number == 7;
       }
     }                               #end of While statement


Next Copyright © 2002 M. J. Dominus