[Israel.pm] printing the output of `command` with immediate flush
szabgab at gmail.com
Tue Nov 24 00:45:35 PST 2009
On Wed, Nov 18, 2009 at 2:59 PM, Yuval Kogman <nothingmuch at woobling.org> wrote:
> 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;
Iteresting. With all my quest to get people use the 3 param format
of open I missed this case.
You always learn new stuff.
Gabor Szabo http://szabgab.com/blog.html
IRC: szabgab on irc.perl.org or on irc.freenode.net
More information about the Perl