<div dir="auto">I recently saw someone talk about MCE, or Multi Core Engine.<div dir="auto"><br></div><div dir="auto"><a href="https://metacpan.org/pod/MCE">https://metacpan.org/pod/MCE</a><br></div><div dir="auto"><br></div><div dir="auto">I need to spend more time with it some day</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 22, 2020, 8:40 AM Joe <<a href="mailto:gizmo@purdue.edu">gizmo@purdue.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/21/20 9:10 PM, Turner, Howard Robert wrote:<br>
> Greetings again everyone.<br>
> <br>
> Looking for some advice. I'm writing a small program that talks to a<br>
> webserver and ends waiting for a connection back from the webserver.<br>
> Problem is I can only figure out to have the call back handled or my<br>
> Perl program continue processing but not both. <br>
> <br>
> Started reading the Perl threads tutorial but it suggests not using<br>
> threads and then started reading about fork instead. So a little<br>
> overwhelmed in figuring out which one is "the right way". <br>
> <br>
> Anyone have suggestions and/or tutorials they'd suggest reviewing beyond<br>
> the ones on perldoc?<br>
<br>
Rob,<br>
<br>
In the past for async stuff I've used:<br>
<br>
<a href="https://metacpan.org/pod/Parallel::ForkManager" rel="noreferrer noreferrer" target="_blank">https://metacpan.org/pod/Parallel::ForkManager</a><br>
<br>
<a href="https://metacpan.org/pod/IO::Async" rel="noreferrer noreferrer" target="_blank">https://metacpan.org/pod/IO::Async</a><br>
<br>
Lots of stuff in the IO::Async distro, like Promises and such.<br>
<br>
<br>
<br>
As for web stuff...<br>
<br>
Mojo is really good for that.<br>
<br>
<a href="https://metacpan.org/pod/Mojo::UserAgent" rel="noreferrer noreferrer" target="_blank">https://metacpan.org/pod/Mojo::UserAgent</a><br>
<br>
<a href="https://metacpan.org/pod/Mojo::DOM" rel="noreferrer noreferrer" target="_blank">https://metacpan.org/pod/Mojo::DOM</a><br>
<br>
<a href="https://metacpan.org/pod/Mojo::Promise" rel="noreferrer noreferrer" target="_blank">https://metacpan.org/pod/Mojo::Promise</a><br>
<br>
<br>
As with all things Perl, There's More Than One Way To Do It.<br>
<br>
Although..we try to push the Modern Way and Best Practices ;-)<br>
<br>
joe<br>
<br>
_______________________________________________<br>
Purdue-pm mailing list<br>
<a href="mailto:Purdue-pm@pm.org" target="_blank" rel="noreferrer">Purdue-pm@pm.org</a><br>
<a href="https://mail.pm.org/mailman/listinfo/purdue-pm" rel="noreferrer noreferrer" target="_blank">https://mail.pm.org/mailman/listinfo/purdue-pm</a><br>
</blockquote></div>