NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Implementing re::pcre (Score:2)
REGEXP*. For instance, many of the regexp magic variables ($+and the like) dive into theREGEXP*structure directly. That may not be too much of a problem, since you can useoptimize.pmto dike out thoseGVSVs and replace them with calls to a function in there::pcrelibrary.So other than that, it ought to be pretty plain sailing. If you're going to do it, I'd suggest using the POSIX interface to
pcre. Oh, the other thing to think about is what happens to regexp modifiers intoke.c. Your wrapper functions will have to take a PerlREGEXPstructure, decode it, feed the arguments intopcreand then decant the results back.Reply to This