Re: how to run regex calculation

2020-01-12 Thread Paul B. Henson
On Thu, Jan 09, 2020 at 10:36:19AM +0800, Wesley Peng wrote: > $str = "2 3 6"; > > I want to match with: > > true if $str =~ /(\d+)\s(\d+)\s($1*$2)/; > > that's to say, the thrid column would be (firstCol * SecondCol). > > How to write regex for this? I don't think you can do it directly in

Re: [a bit OT] AuthCookieDBI and Apache 2.4

2019-02-21 Thread Paul B. Henson
On 2/21/2019 9:46 AM, Michael Schout wrote: Another common thing I've seen people do is return an invalid Apache2::Const value from an Authz provider. You must return one of a Yup, been there done that :). I pieced this together, if my memory is correct, from apache mailing list posts, as

Re: AuthCookieDBI and Apache 2.4

2019-02-20 Thread Paul B. Henson
On Wed, Feb 20, 2019 at 05:56:48PM -0500, Edward J. Sabol wrote: > Any pointers to a working AuthzProvider written in Perl (like for the > "species" one) in your examples? It's not perfectly clear to me how to > go about that. I wrote one for CAS auth a while back:

Re: Apache upgrade 2.2 -> 2.4 and "PerlAuthenHandler Authen::Simple::IMAP"

2019-02-19 Thread Paul B. Henson
On 2/19/2019 6:02 PM, Jie Gao wrote: Found this on CPAN: Module < Authen::Simple::IMAP (DMARTIN/Authen-Simple-IMAP-0.1.2.tar.gz) Hmm, perhaps I should have searched CPAN directly rather than relying on Google :). Thanks for the pointer… The last update for this module was in 2009;

Re: Apache upgrade 2.2 -> 2.4 and "PerlAuthenHandler Authen::Simple::IMAP"

2019-02-19 Thread Paul B. Henson
On 2/19/2019 5:33 PM, Jobst Schmalenbach wrote: While I have fixed most of the issues realted to the upgrade of Apache one I cannot solve is the "PerlAuthenHandler Authen::Simple::IMAP" in .htaccess files. The authentication/authorization API changed between 2.2/2.4, if this module has not

Re: HTTP and MPM support

2019-01-28 Thread Paul B. Henson
On 1/28/2019 1:53 PM, Mark Blackman wrote: https://perldoc.perl.org/threads.html#WARNING  Threads are discouraged in Perl these days Yes, that is indeed what the documentation says; however, there is a far cry between "Perl is single-threaded by design and history and has no reliable

Re: HTTP and MPM support

2019-01-28 Thread Paul B. Henson
On 1/28/2019 12:38 PM, Mark Blackman wrote: > Given that Perl is single-threaded by design and history and has no reliable support for threading, I think that mod_perl and direct http/2 Perhaps I am confused, but I do not necessarily agree with this statement. See, for example:

Re: HTTP and MPM support

2019-01-25 Thread Paul B. Henson
On 1/25/2019 11:00 AM, Michael A. Capone wrote: I have to add my voice to the growing chorus here. Me too. Frequently when the topic of mod_perl going stale comes up somebody jumps in with "That's old stuff, you should be using PSGI/Plack". Those people simply don't understand the overall

Re: Future MPM Support?

2018-07-29 Thread Paul B. Henson
On Sun, Jul 29, 2018 at 04:18:54PM -0400, Paul Silevitch wrote: > Like Dr. James Smith, I'm hooking into multiple handlers and using filters. Yep, me too; Plack is really not a feature equivilent replacement for mod_perl :(.

Bug #122988? mod_perl still maintained?

2018-03-08 Thread Paul B. Henson
Looks like I'm running into: https://rt.cpan.org/Public/Bug/Display.html?id=122988 which was reported back in 9/2017. There doesn't seem to be a resolution to it? I diff'd 2.0.10 (released in 10/2016) against current svn head, and there really don't seem to be any changes of significance. Is