in reply to Re^3: code executed at end of a thread
in thread code executed at end of a thread

"unless i'm on 32"... year right :) I'm using threads to emulate a proper popen() on win32 that returns a handle that I can use in select() . Other than this, the advice above with END inside eval actually works for me just fine.

thanks for a brainstorm!