Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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?

Replies are listed 'Best First'.
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?
[Eily]: and this time you didn't get "but the OP only asked for a solution with sed, grep, awk, bash, tail and cat"
[choroba]: When I get that, I usually just reply "Good luck" and move on.
[marto]: I'm sure it's only going to be a matter of hours before someone adds that comment

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2018-01-23 10:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (243 votes). Check out past polls.

    Notices?