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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
need to pass null in java from perl

 



suman3010
New User

Aug 18, 2009, 3:48 AM

Post #1 of 1 (2618 views)
need to pass null in java from perl Can't Post

Java code is like

while ((line = reader.readLine()) != null) {...}

and we are calling this java from perl like....

$cmdToExec =$perlBin.'\\perl '.$scriptsDir.'/emx/microsoft_sqlserver_database/childperl.pl';
my $childpid = open3( *CHILD_IN, *CHILD_OUT, *CHILD_ERR, $cmdToExec);
print CHILD_IN @javacreds;
close CHILD_IN;

content of childperl.pl is

@out=`$cmdToExec`;
print @out;

So we need to pass the null from perl to java through @javacreds to break the while condition in java.

 
 


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

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