If I understand correctly what you want, I see two possible ways, both of which are cool if they immediately work for you and very, very ugly if they don't:
- Use Inline::Java. This gives you a nice and convenient bridge between Perl and Java and allows you to pass data between them. I don't know if it can magically convert complex datastructures, but that should be a minor problem as long as all structure you have is arrays and hashes.
- Use a webservice to talk from Java with Perl. This means setting up your Perl code to be a SOAP server and then accessing it from Java via some webservice API.
If neither of the two ways works for you, I recommend communicating through a database or the filesystem - both languages have enough facilities to conveniently access the shared resource. Of course, then you will have to write your own code to serialize and deserialize the data, but maybe you can hack a storage for Java hibernate together which nicely deserializes in Perl.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.