I'm working on some Java <-> Perl interaction. I would like to know what the best way is to pass information from Perl to Java. (Great answers about Perl and Java here and here btw).
There's a lot of text and XML(XML::Twig) I'm parsing in Perl, in a script I'm supposed to call from a Java Web App. So I have all this gathered data, and I need it to use it inside certain objects in Java.
What could be a good strategy to send the information from Perl to Java? Is it even possible to return an object or other compatible data structure from Perl to Java?
I guess writing to a text file and reading it from Java would make all the optimization gained by using Perl meaningless.
Perlformance is an important issue here.
EDIT: From what I've seen here, maybe Inline-Java would be a good option?