in reply to Unexpected output for given program with write function
better names might be $nKeysInTable, $nValsMUI, $nKeysMatchedExactly, its self-documenting code :)my $count1 = 0; # Total number of keys in a table my $count2 = 0; # Matched + Undefined + Ingonerd values for key my $count3 = 0; # Number of keys exactly matched
Also, see Re: Formats and Variable Scope for how to make your formats easier to use by making them functions , and eliminating all those format variables.
|
|---|