Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Regex from XS

by creamygoodness (Curate)
on Apr 12, 2006 at 04:40 UTC ( [id://542745]=note: print w/replies, xml ) Need Help??


in reply to Re: Regex from XS
in thread Regex from XS

Hugo,

Thanks for the kind offer. I understand a bit more about the Perl executable now, and I understand why, in the only previous info I could find on the subject (a Nick Ing-Simmons p5p post), it's stated that you can't do this without "faking an op".

There doesn't appear to be prior art for this. While I don't happen to have a greppable mirror, Google indexes .pm, .xs, .c, and .h files, and a Google search for those terms limited to search.cpan.org doesn't turn up anything useful.

I banged my head against pp_hot.c for a while, but there's just too many things I don't understand yet. It will be a happy day when I figure out what a "shrieking SV" is. :) An awful lot happens in pp_match, so the right route is presumably "fake an op" and call pp_match directly, rather than duplicate its innards.

However, manipulation of the op tree is beyond me right now. It doesn't look like this is as simple as calling a couple macros that aren't listed in perlapi, and while I'm very interested in continuing to study the subject, I haven't got time right now to dig this deep in one go. Thanks a bunch for helping me to frame the problem.

--
Marvin Humphrey
Rectangular Research ― http://www.rectangular.com

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://542745]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found