Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

How to call Java Function in perl

Replies are listed 'Best First'.
(crazyinsomniac) RE: Perl Coding(Java?)
by crazyinsomniac (Prior) on Aug 21, 2000 at 10:49 UTC
    Why would you want to call a java function from perl?

    <IMG SRC='' WIDTH=3 HEIGHT=3 ALT='' BORDER=0>
    Anyway, you'd call it like any other system process, i think.

    First you'd need to have a java runtime environment installed and configured on the system/server, so you can run java programs ...

    Then you'd invoke the java 'function' like you would from shell "java Foo(args [ ]])".

    I don't know if the above will work, it should, but here's a module from cpan for accessing the JVM(Java Virtual Machine) from perl.

     

    "cRaZy is co01, but sometimes cRaZy is cRaZy".
                                                          - crazyinsomniac

Re: Perl Coding
by btrott (Parson) on Aug 21, 2000 at 10:17 UTC
    Not sure if this answers your question, but you might take a look at this article.
RE: Perl Coding
by Mushy (Scribe) on Aug 21, 2000 at 21:45 UTC