calling a java class from perl without using system -
i have java code @ server side calls perl @ client side , perl calls java class validation client side.in server side expect output message of string type constructed @ client side java class .for calling java class in perl calling below
$command = $java . ' -classpath ' . $classpath . ' ' . $secoptions . ' ' . $classname . ' ' . $serviceurl . ' ' . $composites; print `$command`;
can perl call java without system command?the issue messages getting printed printed in java class want assign output java class , parse , send server side
it's difficult tell question want might trick
open(my $program, "$command|") or die "$command $!"; #open program on pipe @results=(); while(<$program>) { push @results,$_; # store output }
for other options see perldoc perlipc http://perldoc.perl.org/perlipc.html
Comments
Post a Comment