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.
In reply to Re^2: Non-buffered read from program
by arc_of_descent
in thread Non-buffered read from program
by arc_of_descent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |