in reply to
Sum of Input
You need to reset the $linetotal at the end of the loop.
Regards,
Murugesan Kandasamy
use perl for(;;);
Comment on
Re: Sum of Input
Replies are listed 'Best First'.
Re^2: Sum of Input
by
tilly
(Archbishop)
on Aug 04, 2010 at 18:26 UTC
And increment $gtotal inside the loop.
[reply]
In Section
Seekers of Perl Wisdom