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

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -