in reply to Re: How do I pipe a Win32::API Process to a handle?
in thread How do I pipe a Win32::API Process to a handle?

I'll second that... calling my $results = `ipconfig /all`; would be more than sufficient. Obviously you could also write this to a file

#!/perl -w use strict; my $results = `ipconfig /all`; open(IPINFO, ">C:/ipconfig.out"); print IPINFO $results; close IPINFO;
which does produce results formatted exactly the way you would see on the screen. In other words newlines and whitespaces are preserved when receiving output from a backticked command


Grygonos