Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: XS from XS?

by creamygoodness (Curate)
on Apr 11, 2010 at 15:31 UTC ( [id://834095]=note: print w/replies, xml ) Need Help??


in reply to Re^3: XS from XS?
in thread XS from XS?

The PL_modglobal hash isn't quite the same thing as the general symbol table. From perlapi:
PL_modglobal is a general purpose, interpreter global HV for use by extensions that need to keep information on a per-interpreter basis. In a pinch, it can also be used as a symbol table for extensions to share data among each other. It is a good idea to use keys prefixed by the package name of the extension that owns the data.

However, storing the addresses in scalar package globals accessed from C via get_sv() would be another approach and might actually be better.

Replies are listed 'Best First'.
Re^5: XS from XS?
by BrowserUk (Patriarch) on Apr 11, 2010 at 16:09 UTC

    Thankyou. That clarifies things a lot for me.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2025-11-12 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (68 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.