[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: open ">-" does not work
From:       Jim Winstead <jimw () trainedmonkey ! com>
Date:       2000-09-29 21:09:13
[Download RAW message or body]

On Sep 29, Doug MacEachern wrote:
> On Fri, 29 Sep 2000, Vsevolod Ilyushchenko wrote:
> > Yes, I know. I just want to see how far I can go with the "open".
> > Besides, according to the author of the script (it's for the analog web
> > log analyzer), using open is more secure.
> 
> i've never heard that before, how is it more secure?  more efficient
> maybe, but doubt that its more secure.

probably a reference to the fact that you have to escape the
arguments used in something like $foo = `cat $bar` because it will
go through /bin/sh, but you can avoid that by using open/fork/exec
(or the three-argument open in perl 5.6).

jim

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic