So, the idea is to close the DATA handle BEFORE you spawn the child, so the handle is not passed to it in the first place?
I was thinking you closed the handle between the child being spawned and the parent process closing. But then I assume the child would still have a pointer back to the originating file?
I am still unclear about how threading in perl works.