in reply to CPAN.pm says module is up-to-date, but running it says XS code is not built.
IO::Pty::HalfDuplex has some
portability problems. There's also the typo read.
There is no method read:-). Use recv instead. Neither Ptrace nor
SysctlPoll worked, even though the module passed all tests.
Here's what worked for me:
#!/usr/bin/perl use strict; use warnings; use IO::Pty::HalfDuplex; my $pty = IO::Pty::HalfDuplex->new; $pty->spawn("nethack") or warn "Spawn failed: $!"; unless ( $pty->is_active ) { warn "$pty is not active"; } else { print $pty->recv; }
In Section
Seekers of Perl Wisdom