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

Re: Sum of Input

by marto (Cardinal)
on Aug 04, 2010 at 09:24 UTC ( #852830=note: print w/replies, xml ) Need Help??


in reply to Sum of Input

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.

Replies are listed 'Best First'.
Re^2: Sum of Input
by changma_ha (Sexton) on Aug 04, 2010 at 09:39 UTC

    Thanx marto for your suggestion and advice.From now onwards i will not post in the wrongs threads. Now my problem is solved.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2022-12-04 05:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?