Next | Program Repair Shop | 16 |
19 $InputDIR1 = "./wuexport/"; 20 $InputDIR2 = "./cuexport/";
Here there are only two variables
Isn't it silly to have an array with only two elements?
Not as silly as repeating everything else in the program twice!
Besides, someday there might be a third input directory
What will you do then?
Repeat everything in the program a third time?
@InputDIR = ("./wuexport", "./cuexport");
Next | Copyright © 2002 M. J. Dominus |