develooper Front page | perl.perl5.porters | Postings from June 2008

RE: This Week on perl5-porters - 1-6 June 2008

Thread Previous | Thread Next
From:
Jan Dubois
Date:
June 16, 2008 16:27
Subject:
RE: This Week on perl5-porters - 1-6 June 2008
Message ID:
07f701c8d008$768606f0$639214d0$@com
On Sat, 14 Jun 2008, David Landgren wrote:
> 
> This Week on perl5-porters - 1-6 June 2008
> 
> "File::Temp" and unsafe shell characters (#50146)
> 
>    Ed Avis failed to see why anyone still used of "system" when
>    "IPC::Run" was so much nicer.
> 
>      'coz it ain't core?
>      http://xrl.us/b7frr

There are other reasons too, at least on MSWin32: IPC::Run is rather
inefficient, starting additional helper processes for each redirected
file.

In addition to being somewhat slow (which most of the time may not
be an issue), these helper processes want to execute $^X, which may
not even be available if you are running a Perl program packaged
into a self-contained executable with PAR/PerlApp/Perl2Exe.

Therefore IPC::Run isn't really the generic system() replacement.

Cheers,
-Jan


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