You could use data serialization with XML. That way you can get the data back as a Java object. The Perl program just need to write the results somewhere as a file.
If this is too simple for you application (like it receives several concurrent requests) then you should look for using sockets and XML.
Alceu Rodrigues de Freitas Junior
---------------------------------
"You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill
| [reply] |
You could also use JSON instead of XML, which is easier to parse and produces less overhead. JSON interfaces exist for all major and a lot of minor languages, including, of course, Perl, Java, Javascript, C, C++, and C#.
Alexander
--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
| [reply] |
If you have large, complex data sets, you might consider a database as an intermediary rather than serialization to a file.
| [reply] |