in reply to Reading console output into a perl
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reading console output into a perl
by Anonymous Monk on Nov 25, 2003 at 22:04 UTC |