##
#! perl -slw
use strict;
use Win32::Socketpair qw[ winopen2 ];
## Run the command and get a bi-direction pipe to it.
my $pipe = winopen2( 'RunMe.pl' );
my @results = <$pipe>;
print $pipe "\n";
print scalar @results;
;
## ##
[12:05:50.87] C:\test>winopen2-test.pl
1001
[12:06:00.23] C:\test>