Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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 In reply to Re: Understanding how to fork properly.
by particle
|
|