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: Need a Custom or Prewritten Perl Program?: I need a program that...:
need to pass null in java from perl


New User

Aug 18, 2009, 3:48 AM

Post #1 of 1 (4127 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/';
my $childpid = open3( *CHILD_IN, *CHILD_OUT, *CHILD_ERR, $cmdToExec);
print CHILD_IN @javacreds;
close CHILD_IN;

content of is

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