Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^8: How can I read DATA in parent and child?

by tybalt89 (Monsignor)
on Feb 20, 2019 at 10:33 UTC ( #1230236=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1230236]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2022-09-27 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (118 votes). Check out past polls.

    Notices?