This should flush the pipes everytime right because im setting $| to something greater than zero? Thus, the pipes should never be full?$|++; open2(READ,WRITE,program); for (1..6000) { print WRITE $cmd; while (<READ>) { if (/blah/) { do something; } else { do another thing; } } }
In reply to Re^3: open2() in Windows
by bhaveshbp
in thread open2() in Windows
by bhaveshbp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |