Next | Program Repair Shop | 68 |
Declare variables near where they are used
This tends to keep the scope small
Easier on the maintenance programmer
So for example, instead of:
484 my ($first_file); ... 65 lines omitted ... 550 while ($first_file = shift (@file_list))
Just use:
while (my $first_file = shift (@file_list))
This also eliminates a line of useless clutter
Next | ![]() |
Copyright © 2006 M. J. Dominus |