[sf-perl] What language is most like perl?

Jeff Bragg jackofnotrades at gmail.com
Fri Aug 17 00:21:19 PDT 2012


I would argue that if you're running your script/application with enough
privileges for something like rm -rf to work, unless absolutely necessary,
maybe that's more of a problem than using system() (or backticks, or
whatever).

On Thu, Aug 16, 2012 at 10:23 PM, Garth Webb <garth.webb at gmail.com> wrote:

> How is IPC::Run safer than system?  Also he doesn't need
> to communicate with the script; he just need to run Ruby code, which he is
> not familiar with, from Perl, which he is familiar with.  IPC::Run seems
> like overkill for this.
>
> On Thu, Aug 16, 2012 at 8:32 PM, Kevin Frost <biztos at me.com> wrote:
>
>> Try IPC::Run - that system() below is pretty dangerous if you don't
>> strictly control the vars.
>>
>> my $var2 = '; /bin/rm -rf .';
>>
>>
>> -- frosty
>>
>> On Aug 16, 2012, at 16:04, Garth Webb <garth.webb at gmail.com> wrote:
>>
>> Try:
>>
>>   system("script.rb $var1 $var2");
>>
>> Sent from my iPad
>>
>> --
There Are More Than Two Ways To Do It
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/sanfrancisco-pm/attachments/20120817/55fa796b/attachment-0001.html>


More information about the SanFrancisco-pm mailing list