4 unless(grep /blib/, @INC) {
6 @INC = '../lib' if -d '../lib';
13 if (-d "lib" && -f "TEST") {
14 if (!$Config{'d_fork'} ||
15 (($Config{'extensions'} !~ /\bSocket\b/ ||
16 $Config{'extensions'} !~ /\bIO\b/) &&
17 !(($^O eq 'VMS') && $Config{d_socket}))) {
29 $listen = IO::Socket::INET->new(Listen => 2,
35 $port = $listen->sockport;
39 $sock = $listen->accept();
43 print $sock->getline();
53 } elsif(defined $pid) {
55 # This can fail if localhost is undefined or the
56 # special 'loopback' address 127.0.0.1 is not configured
57 # on your system. (/etc/rc.config.d/netconfig on HP-UX.)
59 $sock = IO::Socket::INET->new(PeerPort => $port,
61 PeerAddr => 'localhost'
68 print $sock->getline();