you might want to try setting
$| to some
non-zero value.
$| causes a buffer flush after every
print statement (i think it works for
write, too, consult the camel.)
most people write $|++;, but i prefer explicitly setting $|=1;. that way if some bonehead set it to -1 previously, the increment op wouldn't be doing the wrong thing.
oh, and this works by default on STDOUT. you'll have to specify autoflush on other filehandles by selecting them first, or by calling the autoflush method on the filehandle, something like $FH->autoflush();
~Particle