develooper Front page | perl.perl5.porters | Postings from October 2012

Re: IPC::Cmd

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
October 2, 2012 04:24
Subject:
Re: IPC::Cmd
Message ID:
20121002112434.GT5653@plum.flirble.org
On Tue, Oct 02, 2012 at 12:53:58PM +0200, Salvador Fandino wrote:
> On 10/01/2012 03:26 PM, Ed Avis wrote:

> > Backtick syntax is not going to disappear, despite its gotchas, but the Perl core
> > should do everything possible to make it as convenient to write bulletproof code
> > as it is to use the string-interpolated builtins.
> 
> While we are at it, I would love to see readpipe extended to support the 
> same arguments as system.

You're not the only one:

http://perl5.git.perl.org/perl.git/blob/blead:/Porting/todo.pod#l742

    =head2 readpipe(LIST)
    
    system() accepts a LIST syntax (and a PROGRAM LIST syntax) to avoid
    running a shell. readpipe() (the function behind qx//) could be similarly
    extended.

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About