Perl + Java

C

corrieknor

Is it possible to call a java program from within my perl code and use
the return value from the java program in my perl program?

Thanks in advance
Corrie
 
P

Paul Lalli

Is it possible to call a java program from within my perl code and use
the return value from the java program in my perl program?

Yes.

perldoc -f system

Paul Lalli
 
K

krakle

of the language it is written in, and inspect its return value to find
the exit status - remember that you will have to shift it right by
eight for the actual one.

Michele

Isnt system somewhat of an expensive call?
 
C

Charlton Wilbur

k> Isnt system somewhat of an expensive call?

It's probably a safe bet that someone invoking Java from Perl is not
likely to be terribly concerned with the overhead of system().

Charlton
 
C

corrieknor

Michele said:
What does this mean?


Michele
--
The perl script should call the java appl. with a parameter. This
parameter is used in the Java appl. to look something up and return
this to the perl scripy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top