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.
In reply to Re: what does $|++ do here?
by JavaFan
in thread what does $|++ do here?
by deep3101
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |