I am working on some Java ↔ Perl interaction. I would like to know what is the best way to pass information from Perl to Java. (Great answers to questions about Perl and Java here and here, by the way.)
There is a lot of text and XML (XML :: Twig). I understand Perl, in a script, I have to call from the Java Web App. Therefore, I have all this data collected, and I need it to use it inside certain objects in Java.
What could be a good strategy for sending information from Perl to Java? Is it possible to return an object or other compatible data structure from Perl to Java?
I assume that writing to a text file and reading it from Java will make all the optimization obtained with Perl pointless.
Perlformance is an important issue.
EDIT:
From what I saw here , maybe Inline-Java would be a good option?
source
share