Perl: the Markov chain saw | |
PerlMonks |
Re: How can I read DATA in parent and child?by marioroy (Prior) |
on Feb 20, 2019 at 02:50 UTC ( [id://1230210]=note: print w/replies, xml ) | Need Help?? |
Hi Skeeve, Update: Ah, the OP wants to read DATA independently. See tybalt89's solution. Update: Currently, the following demo works on Unix platforms with IO::FDPass: automatically loaded by MCE::Shared if present in Perl. The next update to MCE::Shared on CPAN will support reading from the DATA handle without involving IO::FDPass and work on Windows including Cygwin. MCE::Shared is not exclusive to only MCE parallel modules: e.g. MCE, MCE::Flow, MCE::Hobo, and etcetera. MCE::Shared also works with threads, even fork shown below, and other parallel modules found on metacpan. Code
Output
Regards, Mario
In Section
Seekers of Perl Wisdom
|
|