I'll second that... calling my $results = `ipconfig /all`; would be more than sufficient. Obviously you could also write this to a file
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#!/perl -w use strict; my $results = `ipconfig /all`; open(IPINFO, ">C:/ipconfig.out"); print IPINFO $results; close IPINFO;
In reply to Re: Re: How do I pipe a Win32::API Process to a handle?
by Grygonos
in thread How do I pipe a Win32::API Process to a handle?
by slloyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |