I have a stand alone application which take the inputs from the user. i have a perl program which works fine on its own. But is there any way where i can take the inputs from that stand alone java application and pass the inputs to this perl program to do some processing?
It is not clear whether you want to do something like java <yourjavaprogram> | perl <yourperlprogram> or call a perl program from java, passing stuff to the perl program when it requests input and getting what the program sends as an output (which is feasible too).
To do this from an application, you can just do this. Process p = Runtime.getRuntime().exec("call perl programm here using normal command line..."); Sean
Hi sean, Can u please elaborate on this. I am novice to perl so can u please explain about what u said..? how do u call a perl program from command line.. i am running that perl program on WIN32 platform. I am using Active perl for win32. I want to take input from the front end(java application)and pass those values to the perl program to do some processing.
Hi sean, Can u please elaborate on this. I am novice to perl so can u please explain about what u said..? how do u call a perl program from command line.. i am running that perl program on WIN32 platform. I am using Active perl for win32. I want to take input from the front end(java application)and pass those values to the perl program to do some processing.
Thanks in advance!
Get meta with me! What pursues us is our own obsessions! But not this tiny ad:
a bit of art, as a gift, that will fit in a stocking