Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Will the real Internals module please stand up?

by demerphq (Chancellor)
on Nov 16, 2012 at 11:10 UTC ( #1004172=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Will the real Internals module please stand up?
in thread Will the real Internals module please stand up?

What do you mean about "bindings are absent"?

Most of this stuff, in particular availability, is not documented directly for a reason. So for instance Tie::Hash::NamedCapture is used to implement named captures. It is loaded automagically by the internals when you do a $+{foo} style lookup. It uses a bunch of the re:: functions, which are exposed via universal because they are then compiled into the core executable and thus do not require an additional library to be loaded. Now I could have implemented the entire thing without using any perl level modules or exposing any subs, but that would have limited the options available to the programmer which I felt was not the Perl way.

---
$world=~s/war/peace/g


Comment on Re^3: Will the real Internals module please stand up?
Re^4: Will the real Internals module please stand up?
by ikegami (Pope) on Mar 02, 2013 at 22:31 UTC

    I just saw this now for the first time.

    What do you mean about "bindings are absent"?

    Don't know.

    re::regexp_pattern is defined in 5.10.0's universal.c and it's bound to the Perl namespace.

    re::regmust isn't defined in 5.10.0's universal.c, so why was it mentioned?

    Maybe I was looking at the wrong file version?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2014-08-29 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (282 votes), past polls