in reply to Bug in __DATA__ filehandle
Your code isn't sufficiently obvious to me to see the flow of control and what you expect (nor do I understand how you're using __DATA__, but if you have a filehandle open in a parent and a child simultaneously (that is, if you've opened it in a parent and access it in a child), they share the same position in the file. Re-open the filehandle in the children before doing anything which will affect the file position, or read the data before forking off any kids.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bug in __DATA__ filehandle
by Anonymous Monk on Nov 01, 2008 at 20:18 UTC |