open(JAVA,'|java Hello') or die "oops: $!\n"; print while ; close JAVA;