Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Does print() write immediately to a file?

by robartes (Priest)
on Oct 15, 2003 at 11:36 UTC ( [id://299382]=note: print w/replies, xml ) Need Help??


in reply to Does print() write immediately to a file?

This is a FAQ. Basically, you need to set $| to true for your filehandle. This is a funky way of doing so, straight from the FAQ:
select((select(OUTPUT_HANDLE), $| = 1)[0]);

CU
Robartes-

Replies are listed 'Best First'.
Re: Re: Does print() write immediately to a file?
by marctwo (Acolyte) on Oct 15, 2003 at 13:11 UTC
    Thank you so much. This works great!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2024-04-24 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found