| [reply] |
I posted something on Java and Perl on a somewhat similar question at Java and Perl Harnessed. I never got any feedback from the person that asked the question, so I can't tell if it was of any help or not. If you would be so kind as to let us know if you found it useful, that would be great!
The originating node was Perl to Java.
#!/home/bbq/bin/perl
# Trust no1!
| [reply] |
Just had a look at it...
It's mostly a description of how one would create a native interface between Java and a Perl.
Which is what I was hoping somebody had allready done =)
It does however give some ok thoughts about how one might create a link between Java and Perl Scalar values...
| [reply] |
You may want to take a look at the Java module on CPAN.
To quote directly from the README:
This module allows you to talk to a JVM on a local or remote machine.You can create objects, call functions, access
fields, deal with arrays, get events, & all the nonsense you can do in Java - from Perl!
You run a "JavaServer" program on the machine to which the
Java module is to talk, and then code stuff like:
use Java;
$java = new Java;
$frame = $java->create_object("java.awt.Frame","Title");
$frame->setSize(400,400);
$frame->show();
And so on.
This is really quite interesting, but it is not particularly secure, as far as I can see.
I suppose this is an "opportunity to excel", as they say.
I think this may do what you're looking for. It does, however, seem to imply that you'll
be doing all of the programming on the Perl side.
Not that there's anything wrong with that. More like a feature, actually. | [reply] |