perl - In XS, how do I get a variables address from its name? -
In XS, how do I change a string that holds a variable name in its name, I want to do something like the following Perl code:
our $ var = 1; Print $ {$ Main: {var}}; In this, it says:
If you know the name of a scalar variable, you can get an indicator in your SV using the following: SV * get_sv ("package :: varname", FALSE);
Comments
Post a Comment