[Israel.pm] printing the output of `command` with immediate flush

Yuval Kogman nothingmuch at woobling.org
Wed Nov 18 04:59:59 PST 2009

2009/11/17 Gabor Szabo <szabgab at gmail.com>:

> open my $ph, "$cmd |" or die;

The 3 argument form of open is better, though technically for external
commands it's potentially more than 3 ;-)

    open my $ph, "-|", @cmd;

More information about the Perl mailing list