Next Program Repair Shop 211

The Condition that Ate Michigan (Digression)

          while($file = readdir(SUB))
          {
            if($file =~ /\.log.+/i)
            {
              $total += -s "$listlogs/$dir/$file";
            }
          }
          while($file = readdir(SUB))
          {
            next unless $file =~ /\.log.+/i;
            $total += -s "$listlogs/$dir/$file";
          }
          for (grep /\.log.+/i, readdir(SUB))
          {
            $total += -s "$listlogs/$dir/$_";
          }


Next Copyright © 2002 M. J. Dominus