in reply to Re^2: Can't get it working: Bidirectional Pipe on Windows
in thread Can't get it working: Bidirectional Pipe on Windows

is there any reason to prefer using Win32::Socketpair over it?

It depends whether you're asking about the interface or the implementation.

I don't know what differences there might be in the implementations, but winsocketpair is obviously easier to use than socketpair.

my ($fd1, $fd2) = winsocketpair();

vs

use Socket qw( AF_UNIX SOCK_STREAM PF_UNSPEC ); socketpair(my $fd1, my $fd2, AF_UNIX, SOCK_STREAM, PF_UNSPEC)

(Just to make things confusing, it has has to be a UNIX socket, not an INET socket.)