in reply to Re^2: Return values to outside programs
in thread Return values to outside programs

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
  • Comment on Re^3: Return values to outside programs

Replies are listed 'Best First'.
Re^4: Return values to outside programs
by afoken (Chancellor) on Aug 23, 2009 at 19:27 UTC

    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". ;-)