Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Print does not work in loop unless used with \n

by SuicideJunkie (Vicar)
on Apr 11, 2012 at 22:07 UTC ( #964638=note: print w/ replies, xml ) Need Help??


in reply to Print does not work in loop unless used with \n

You are, as they say Suffering From Buffering

For the simple cases, you can set $| = 1; and it will likely do what you want.


Comment on Re: Print does not work in loop unless used with \n
Download Code
Replies are listed 'Best First'.
Re^2: Print does not work in loop unless used with \n
by Mistdemon (Initiate) on Apr 11, 2012 at 22:46 UTC
    Thanks!!
    that did the trick! :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (17)
As of 2015-07-28 16:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls