There's one other way of retrieving the output. Use open
open (OUTPUT, "C:\\configInfo.exe |") || die "Couldn't run configInfo.exe - $!\n": while (<OUTPUT>) { # do stuff which each line of OUTPUT... }
Note the pipe after the C:\\configInfo.exe command.
In reply to Re: Reading console output into a perl
by vek
in thread Reading console output into a perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |