in reply to Understanding how to fork properly.
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Understanding how to fork properly.
by dvergin (Monsignor) on Jan 31, 2002 at 04:07 UTC | |
|
(crazyinsomniac) Re^2: Understanding how to fork properly.
by crazyinsomniac (Prior) on Jan 31, 2002 at 04:34 UTC | |
by chromatic (Archbishop) on Jan 31, 2002 at 05:55 UTC | |
by particle (Vicar) on Jan 31, 2002 at 14:06 UTC |