<?xml version="1.0" encoding="windows-1252"?>
<node id="1006924" title="Re: Java programming and Perl" created="2012-12-03 13:36:19" updated="2012-12-03 13:36:19">
<type id="11">
note</type>
<author id="757127">
tobyink</author>
<data>
<field name="doctext">
&lt;p&gt;It's possible to call Java code from Perl using [mod://Inline::Java]. An example module that does so is [mod://XML::Saxon::XSLT2].&lt;/p&gt;
&lt;p&gt;There are similar inline modules for other programming languages - [mod://Inline::C], [mod://Inline::Ruby], [mod://Inline::Lua], etc.&lt;/p&gt;
&lt;p&gt;The other way around - calling Perl from other programming languages - is also possible. Perl can be compiled as a library ("libperl") which can be embedded into C programs; and thus theoretically be called from any other programming language capable of linking against C libraries. There exists a &lt;a href="http://pecl.php.net/package/perl"&gt;PECL module allowing Perl to be embedded in PHP&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I don't think this would be a fruitful or indeed sane way of getting Perl running on Android though. Maybe look at &lt;a href="http://code.google.com/p/perldroid/"&gt;perldroid&lt;/a&gt;?&lt;/p&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-757127"&gt;
&lt;small&gt;&lt;small&gt;
&lt;tt&gt;perl -E'sub Monkey::do{say$_,for@_,do{($monkey=&amp;#x5B;caller(0)]-&gt;&amp;#x5B;3])=~s{::}{ }and$monkey}}"Monkey say"-&gt;Monkey::do'
&lt;/tt&gt;&lt;/small&gt;&lt;/small&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1006922</field>
<field name="parent_node">
1006922</field>
</data>
</node>
