Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Sum of Input

by murugu (Curate)
on Aug 04, 2010 at 10:02 UTC ( #852839=note: print w/ replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://852839]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2016-04-29 00:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (437 votes). Check out past polls.