develooper Front page | perl.perl5.porters | Postings from May 2004

intercepting qr// (not via

Jeff 'japhy' Pinyan
May 2, 2004 09:58
intercepting qr// (not via
Message ID:
I'd like to intercept qr//, after it's done its interpolation of
variables, but BEFORE it is parsed by the regex engine.

I looked at pp_qr() in pp_hot.c, but that's just taking a regex and doing
things to it, so I need to get at the regex text before then.

I know that MJD wrote replacement regcomp and regexec files, but
that's deeper than I need, I think.  I'd just like to intercept the raw
regex before it's parsed by regcomp, so I can filter the WHOLE thing.

Jeff "japhy" Pinyan
RPI Acacia brother #734
CPAN ID: PINYAN    [Need a programmer?  If you like my work, let me know.]
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About