in reply to Re: Non-buffered read from program
in thread Non-buffered read from program
Doesn't seem to work on mine. IO::Handle too does not help.
use strict; use warnings; use IO::Handle; open my $WHOIS, "jwhois x.x.x.x 2>&1 |"; my $io = IO::Handle->new; $io->fdopen($WHOIS, "r"); $io->blocking(0); print $io->getline; $io->close;
I don't get any output, if the server is unavailable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Non-buffered read from program
by myuji (Acolyte) on Dec 30, 2005 at 14:44 UTC |