All the Perl that's Practical to Extract and Report

Navigation

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Without JavaScript enabled, you might want to
use the classic discussion system instead. If you login, you can remember this preference.

How hard would it be to make a module that caused all regular expressions lexically to use PCRE rather than the default one?

Doing it lexically would be trickier, because you'd have to either add a new set of OPs for the PCRE versions, or at least a flag for the existing ones. I was thinking it would be more along the lines of use re 'debug'; (which is to say, not lexically scoped).

The first stage is to write a simple XS interface to PCRE, and then we can do some sensible benchmarks as well.