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!