system returns the exit status of the program not the output. To retrieve the output of it, you can use backticks.
Hope that helps.$myVar = `C:\\configInfo.exe`; print "output: $myVar\n";
update: double'd backslashes.. whoops. Thanks Corion.
In reply to Re: Reading console output into a perl
by duct_tape
in thread Reading console output into a perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |