in reply to Re^2: Web based perl REPL
in thread Web based perl REPL
Perhaps you could append a ;print "END_OF_OUTPUT\n"; to the code that was sent in and then read until that.
I'm not sure how your loop works, but you could probably also append a value to "END_OF_OUTPUT" that doesn't occur within the code.