Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Web based perl REPL

by BUU (Prior)
on Dec 03, 2006 at 21:11 UTC ( #587546=note: print w/replies, xml ) Need Help??


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. =[

Replies are listed 'Best First'.
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://587546]
help
Chatterbox?
[shmem]: It's common for some vendors to have column names such as WRSTVG or some other such whizzbang, and another table where these names are mapped to something meaningful depending on how you look at the data
[shmem]: afair in SAP that occurs all the time
[shmem]: afair in SAP that sort of indirection is sprinkled all over the database (for hysterical raisins)

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2017-05-25 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?