Think about Loose Coupling | |
PerlMonks |
Re: Sum of Inputby marto (Cardinal) |
on Aug 04, 2010 at 09:24 UTC ( [id://852830]=note: print w/replies, xml ) | Need Help?? |
This isn't your fist post here, this is in the wrong section of the forum. Where should I post X? is displayed each time your are posting, please don't ignore it's advice. Examine your code and the input data (note that 6 + 11 = 17), notice that you aren't resetting $linetotal to zero after printing the results for each line.
In Section
Seekers of Perl Wisdom
|
|