in reply to what does $|++ do here?
There's no reason to prefer $|++; over $| = 1;. What the latter does, please refer to the perlvar manual.
As for WNOHANG, it makes the waitpid not blocking, that is, it returns immediately, even if the process waiting for hasn't terminated yet.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: what does $|++ do here?
by deep3101 (Acolyte) on May 30, 2011 at 16:38 UTC |