In XS, how can I turn a string containing the variable name into my address, I want to do something like the following perl code:
our $var = 1; print ${$main::{var}};
In perlguts says:
If you know the name of a scalar variable, you can get a pointer to its SV using the following:SV* get_sv("package::varname", FALSE);
If you know the name of a scalar variable, you can get a pointer to its SV using the following:
SV* get_sv("package::varname", FALSE);
Source: https://habr.com/ru/post/1711299/More articles:Dimension modeling: should a fact table have a foreign key? - sql-serverReading in Malformed XML (non-encoded XML objects) using PHP - xmlJavascript aliases - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1711297/what-do-you-prefer-for-showing-your-local-rails-projects-to-friends&usg=ALkJrhiNqbgeIsQETZwnMel9vfU625VwxQWhere to store common features in ColdFusion - coldfusionHow is it 13 bytes? - javaВертикальный текст в службах Reporting Services (снизу вверх) - reporting-services"#if DEBUG" on an ASPX / ASCX page - preprocessorHow do I call managed .NET code from my unmanaged C ++ code on Windows and vice versa? - c ++Is it possible to create a web chat client without socket-based frames? - twistedAll Articles