Next | Program Repair Shop | 166 |
The next thing I did was to use diff on the two sections of code
This helped point up the similarities and differences
Overlaps can be merged
Items in one version but not in the other can be sequestered into if blocks
440 open (MAIL, "| /usr/sbin/sendmail -t"); 441 print MAIL "To: author\@example.com\n"; ... 444 close MAIL;
This becomes:
if ($final) { open (MAIL, "| /usr/sbin/sendmail -t"); print MAIL "To: author\@example.com\n"; ... close MAIL; }
I saved the program outputs before and after the change
Then compared them to be sure there were no output errors
Next | Copyright © 2002 M. J. Dominus |