open2 / open3 is something that can be done instead of CreateProcess.
If you're not feeding anything to it using STDIN, you can simply use:
open(COUNTER, "$COUNTERS_NAME -interval $interval |") or die("...: $!\n"); while (<COUNTER>) { ... }
In reply to Re: capturing STDOUT after Win32::Process::Create()
by ikegami
in thread capturing STDOUT after Win32::Process::Create()
by bmc_mark
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |