Re: prime factors

2017-05-02 Thread Raunak Kathuria
Hi Derrick, Logically you are going with linear approach, better to find patterns that can discard data that is not needed which will reduce time I solved it while back using following algorithm of divide and break sub largestPrimeFactors { my $n = shift; my $largest = 0; # remove a

Re: CPAN will shutdown

2018-05-22 Thread Raunak Kathuria
Also please don't use misleading subject. CPAN is altogether different from search.cpan.org. Regards Raunak On Wed, May 23, 2018 at 11:50 AM John SJ Anderson wrote: > > > On 22May2018, at 20:41, Practical Perl wrote: > > > > search.cpan.org is shutting down > > For details read Perl NOC. After

Re: any blocked websocket client for perl?

2021-02-05 Thread Raunak Kathuria
Have a look at https://metacpan.org/pod/Net::Async::WebSocket For client: https://metacpan.org/pod/Net::Async::WebSocket::Client On Thu, 4 Feb 2021 at 10:32 AM, Wesley Peng wrote: > I am trying to find a websocket client for perl. > But most modules on cpan is asynchronous, such as > AnyEvent::

Re: socket recive problem

2021-04-04 Thread Raunak Kathuria
You can use https://gist.github.com/raunakkathuria/633f46222f7d3a40c2ecd0234e1cb3e0 as a reference example of socket connection using IO::Async::* Hope that's useful. On Mon, Apr 5, 2021 at 12:00 AM Shlomi Fish wrote: > On Fri, 2 Apr 2021 13:46:35 -0400 > Uri Guttman wrote: > > > On 4/2/21 4:4