No such thing as a small change | |
PerlMonks |
Re^5: Output Repeats in the elsif statementby Athanasius (Archbishop) |
on Feb 14, 2013 at 03:12 UTC ( [id://1018668]=note: print w/replies, xml ) | Need Help?? |
Hello PilotinControl, The output “Car Record Not Found” appears multiple times because it is within a loop. You need to change the logic to something like this (untested):
(This assumes that each car record appears no more than once in the input file. If this is not the case, remove the last; statement from within the if clause.) Hope that helps,
In Section
Seekers of Perl Wisdom
|
|