Next | Program Repair Shop | 18 |
Declare variables near where they are used
This tends to keep the scope small
Easier on the maintenance programmer
So for example, instead of:
my $inv_file;
... 83 lines omitted
$inv_file = $data_out_path . ".inv";
Just use:
my $inv_file = $data_out_path . ".inv";
This also eliminates a line of useless clutter
Next | Copyright © 2006 M. J. Dominus |