Web lists-archives.com

Re: Potentially insecure Perl scripts




On Wed, Jan 23, 2019 at 05:23:10PM +0100, Alex Mestiashvili wrote:
> On 1/23/19 4:44 PM, Vincent Lefevre wrote:
> > I agree that it would be better to drop this "feature" of Perl.
> > It is probably never used, and probably useless (I would rather
> > use the features from the shell if I need a pipe).
> 
> Perl's open is well documented. Quoting the perlipc:
> 
> "it's much more efficient to process the file one line or record at a
> time because then you don't have to read the whole thing into memory at
> once."

This is a red herring.  Prepending a pipe to a perl command doesn't
require reading the whole thing into memory.

> Please stop making python out of perl :)

This makes no sense in context, since Python programs routinely process
files a line at a time.  Surely this is just derailing?

-- 
Colin Watson                                       [cjwatson@xxxxxxxxxx]