Don't ask to ask, just ask | |
PerlMonks |
Re: How can I read DATA in parent and child?by choroba (Cardinal) |
on Feb 18, 2019 at 14:13 UTC ( [id://1230105]=note: print w/replies, xml ) | Need Help?? |
Interesting. Even duplicating the DATA handle in the child doesn't help.
But opening the script itself again works, using tell to find the position of the DATA section:
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|