open FH, "whois x.x.x.x 2>&1 |"; my $ofh = select FH; $|=1; while (<FH>) { print; } close FH;
Turn on warnings and you'll see exactly what the problem is with this piece of code.
In reply to Re: Non-buffered read from program
by derby
in thread Non-buffered read from program
by arc_of_descent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |