http://qs321.pair.com?node_id=852839


in reply to Sum of Input

You need to reset the $linetotal at the end of the loop.

Regards,
Murugesan Kandasamy
use perl for(;;);

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.