Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Insert a meter only once

by SuicideJunkie (Vicar)
on Nov 20, 2015 at 17:27 UTC ( [id://1148249]=note: print w/replies, xml ) Need Help??


in reply to Insert a meter only once

Your program will be mostly in perl rather than french, so it should be ok ;)

This is just guessing; perhaps you mean 'tallies' or 'statistics' or 'summary'.

I imagine you have a loop to iterate over the words and print them. It sounds like you have the print statement for the "meter" inside the loop, so it prints each time. Simply moving it outside the loop will make it only run once.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found