in reply to Non-blocking Pipes?

This is probably more of a question than a response:

The way I'd do it would be like this:

use strict; use warnings; use FileHandle; my $handle = FileHandle->new("/path/to/process |"); $handle->autoflush(1); while(my $line = <$handle>) { print $line; # do something useful with $line... }

But I assume that doesn't work for some reason. Can anyone tell me why?