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

Scott Gust scott.gust at gmail.com
Fri Aug 17 00:05:25 PDT 2012


much safer to call system this way:

system("script.rb", $var1, $var2);



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
>>
>> On Aug 16, 2012, at 6:51 AM, Richard Reina <gatorreina at gmail.com> wrote:
>>
>> Thanks for the replies. The ruby script as it's written works ok, but I
>> have a perl script that would need to run before it, breaking up multiple
>> page pdf, and after it doing regex on the converted text file. Does anyone
>> know how (if possible) to execute a ruby script from a perl script and pass
>> it scalar variables?
>>
>> 2012/8/16 Paul Makepeace <paulm at paulm.com>
>>
>>> JavaScript (really) and Ruby, without a doubt. The danger with Ruby is
>>> you might not want to go back to Perl ;) (except on the command line where
>>> perl is unassailable)
>>>
>>> Another option might be Python - it's *sort of* like Perl insofar as
>>> being a scripting language with hashes etc but its learning curve is way
>>> less which might be a net win if you're in a hurry and just doing this as a
>>> one-off.
>>>
>>> Paul
>>>
>>> Written on my phone
>>> On Aug 15, 2012 10:54 PM, "Richard Reina" <gatorreina at gmail.com> wrote:
>>>
>>>>  Hello all,
>>>>
>>>> I have a program that uses tesseract to try to classify documents on
>>>> our LAN. Tesseract comes up way short so I am looking into Abbyy.  The
>>>> problem I have is that abbyy supplies sample code in everything but perl
>>>> http://ocrsdk.com/documentation/code-samples/ .  Perl is the only
>>>> language I know, but I don't know it well enogh to re-write the sample
>>>> code.  Is it time for me to learn a new language? If so does anyone have
>>>> any recommendations? WHich is most like perl?
>>>>
>>>> _______________________________________________
>>>> SanFrancisco-pm mailing list
>>>> SanFrancisco-pm at pm.org
>>>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>>>>
>>>>
>> _______________________________________________
>> SanFrancisco-pm mailing list
>> SanFrancisco-pm at pm.org
>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>>
>> _______________________________________________
>> SanFrancisco-pm mailing list
>> SanFrancisco-pm at pm.org
>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>>
>>
>
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/sanfrancisco-pm/attachments/20120817/79ca8497/attachment.html>


More information about the SanFrancisco-pm mailing list