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.<br>
<br><div class="gmail_quote">On Thu, Aug 16, 2012 at 8:32 PM, Kevin Frost <span dir="ltr"><<a href="mailto:biztos@me.com" target="_blank">biztos@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF"><div>Try IPC::Run - that system() below is pretty dangerous if you don't strictly control the vars.</div><div><br></div><div>my $var2 = '; /bin/rm -rf .';<br><br><div><br></div>-- frosty</div>
<div><div class="h5"><div><br>On Aug 16, 2012, at 16:04, Garth Webb <<a href="mailto:garth.webb@gmail.com" target="_blank">garth.webb@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div>Try:</div>
<div><br></div><div>  system("script.rb $var1 $var2");<br><br>Sent from my iPad</div><div><br>On Aug 16, 2012, at 6:51 AM, Richard Reina <<a href="mailto:gatorreina@gmail.com" target="_blank">gatorreina@gmail.com</a>> wrote:<br>
<br></div><div></div><blockquote type="cite"><div>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? <br>

<br><div class="gmail_quote">2012/8/16 Paul Makepeace <span dir="ltr"><<a href="mailto:paulm@paulm.com" target="_blank">paulm@paulm.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<p dir="ltr">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)</p>
<p dir="ltr"> 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.</p>



<p dir="ltr">Paul<br><br></p>
<p dir="ltr">Written on my phone</p>
<div class="gmail_quote"><div>On Aug 15, 2012 10:54 PM, "Richard Reina" <<a href="mailto:gatorreina@gmail.com" target="_blank">gatorreina@gmail.com</a>> wrote:<br type="attribution"></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>
Hello all,<br><br>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 <a href="http://ocrsdk.com/documentation/code-samples/" target="_blank">http://ocrsdk.com/documentation/code-samples/</a> .  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?<br>



<br></div><div>_______________________________________________<br>
SanFrancisco-pm mailing list<br>
<a href="mailto:SanFrancisco-pm@pm.org" target="_blank">SanFrancisco-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>
<br></div></blockquote></div>
</blockquote></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>SanFrancisco-pm mailing list</span><br><span><a href="mailto:SanFrancisco-pm@pm.org" target="_blank">SanFrancisco-pm@pm.org</a></span><br>
<span><a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a></span><br></div></blockquote></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br>
<span>SanFrancisco-pm mailing list</span><br><span><a href="mailto:SanFrancisco-pm@pm.org" target="_blank">SanFrancisco-pm@pm.org</a></span><br><span><a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a></span><br>
</div></blockquote></div></div></div></blockquote></div><br>