CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
Calling JAVA API


New User

Jun 15, 2017, 11:55 PM

Post #1 of 2 (2263 views)
Calling JAVA API Can't Post

There are some Java APIs. I need to write a code on calling those Java APIs from a Perl script. One will be for insertion records in the oracle database calling the API and the other API will be to read the return data-set and write in a file.
Can anyone help me in building up the knowledge on how to do this in Perl.

Veteran / Moderator

Jun 16, 2017, 8:21 AM

Post #2 of 2 (2252 views)
Re: [eroykam] Calling JAVA API [In reply to] Can't Post

Perl has multiple ways to run external programs.

The most common method is to use the system() function.

Another option is to use the ` ` backticks or qx() operator. You can learn about them in the perlop documentation.

Another option, if you need/want more control, would be to use one of the IPC modules, such as IPC::Run


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives