in reply to Side Effects
I don't see the problem immediately, but I can tell you that the working version is far from identical to the original. In this the working version the loop variable holding the last read input line is a lexical scalar, while in the buggy version it is a global.
Update: I still can't figure it out; I need to see more code, preferably something I can run and reproduce the error with. Also, I fixed the wording of my original reply.
the lowliest monk
|
|---|