Calling Perl from Java
Something that I have been playing with of late is calling Perl from
Java, and it is something that I can see people needing more and more as
time goes by.
Java-| |--> Perl (and maybe back again at some later date)
After talking with Patrick Leboutillier of Inline::Java, I decided to
have a crack at building this functionality myself (at the time
Inline::Java's focus was on calling Java from Perl, and the reverse was
not complete).
What I needed was to be able to communicate with a custom built Perl
based application server that we use to abstract our business logic from
our Business Portal, to SAPs new J2EE
enable server technology.
If anyone is interested in having a go, the results of this so far is org.perl.java.
The README explains the difficulties with JVMs, and the build
requirements of Perl. So far, there is the ability to load an initial
perl program, eval an arbitrary piece of Perl, call a static Perl
method, and do an instance method call, on a previously defined Perl
object reference. All return values are either further Perl object
references or strings currently.
Posted by PiersHarding at April 17, 2004 9:43 PM