in reply to Re: Web based perl REPL in thread Web based perl REPL
You are very correct, I'm afraid it's been a long standing bug. My essential problem is I have no real way of telling when the output has ended, so at the moment I just read the first line and return that.
Also while I'm listing bugs, it doesn't handle STDERR very well. Or at all. =[
Re^3: Web based perl REPL
by AK108 (Friar) on Dec 04, 2006 at 02:24 UTC
|
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. | [reply] [d/l] |
|