I have a perl script that has an endless loop that reads an integer from the user and add it to the variable $b every time;
$b = 0;
while ( 1 == 1 ) {
$a = <STDIN>;
$b = $b + $a;
print $b + "\n";
}
I have a php form that has an input-text field and submit button, and when pressing the submit button I want to pass the value given in the input-text field to the running perl script and get the last value of the $b variable to show it in my php form.
So my question is how to do this interconnection between php and perl?