http://qs321.pair.com?node_id=1230236


in reply to Re^7: How can I read DATA in parent and child?
in thread How can I read DATA in parent and child?

It's not perl, it's the OS. You'd have the same problem with an already open fd in C. DATA is just an open fd on the source file.

Try a seek DATA, 0, 0; and notice you can read the whole source file.