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.

$myVar = `C:\\configInfo.exe`; print "output: $myVar\n";
Hope that helps.
Brad

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
    Awesome, Exactly what I needed to know, thanks.