Next | Program Repair Shop | 70 |
The other tipoff was code like this:
while ($array_ref = shift (@md5_LoL)) { push @fc_LoL, compare_by_fc (@$array_ref); }
Why modify @md5_LoL?
It's just one more state change the maintenance programmer has to worry about
But it makes sense...
If it was written by someone uncomfortable with garbage collection
Perhaps:
foreach my $array_ref (@md5_LoL) { push @fc_LoL, compare_by_fc (@$array_ref); }
Next | ![]() |
Copyright © 2006 M. J. Dominus |