Key thing is the pipe "|".open($javain, "java ... |") or die "...."; while (<$javain>) { #receive the output } close($javain); # # or # open($javaout, "| java ...") or die "...."; foreach (@inputline) { print $javaout $_; #send some input } close($$javaout);
In reply to Re^2: Testing Java code
by Skeeve
in thread Testing Java code
by drawde83
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |