On Wed, Nov 18, 2009 at 2:59 PM, Yuval Kogman <[email protected]> wrote:
> 2009/11/17 Gabor Szabo <[email protected]>:
>
>> 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

-- 
Gabor Szabo                     http://szabgab.com/blog.html
IRC: szabgab on irc.perl.org or on irc.freenode.net
Twitter: http://twitter.com/szabgab
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to