From: Ron Grunwald via inline
Sent: Thursday, December 01, 2016 9:26 AM
To: inline@perl.org ; sisyph...@optusnet.com.au ; Perf Tech
Subject: Re: Question about accessing global data from a line function
You can access package variables directly:
printf("here: %s\n", SvPV_nolen(get_sv("main::data",0)));
Wow OK - I didn't know you could do that. I'm wondering if this could be
added into the Inline::C Cookbook? Perhaps under the heading "Accessing
Perl variables directly from a C function".
Rob, are you still maintaining Inline?
No, Ingy has been doing that for the last year or two.
Best way to get such an addition into the Cookbook is probably to submit a
pull request to github ( https://github.com/ingydotnet/inline-c-pm).
Another option would be to open an "issue" on the topic at
https://github.com/ingydotnet/inline-c-pm/issues .
Cheers,
Rob