Just another Perl shrine | |
PerlMonks |
Re: How can I read DATA in parent and child?by karlgoethebier (Abbot) |
on Feb 19, 2019 at 16:43 UTC ( [id://1230172]=note: print w/replies, xml ) | Need Help?? |
I wonder what you really want to do. As far as I understood you want to read from a file from two different processes, right? The use of <DATA> is just a simplification. Please correct me if i‘m wrong. You may consider to use MCE::Hobo. If you don‘t use threads it forks. Please see Re: Parallel trigger of different subs as well as the whole thread ibidem for inspiration. Minor update: Fixed typo. Best Regards, Karl «The Crux of the Biscuit is the Apostrophe» perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
In Section
Seekers of Perl Wisdom
|
|