Do you need to write the file? If you just want the output, you could use backticks. (Of course, I've never done this on Windows, so you might have to use IPC::Open, in which case your approach is much faster in development time.)
my @output = `$cmd $ip`;In reply to Re: Reading from STDOUT after Redirecting it.
by chromatic
in thread Reading from STDOUT after Redirecting it.
by Dru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |