AW: Accessing variables from inside a C-XS
[email protected] ("Bolhar-Nordenkampf Ferdinand")
| Newsgroups | perl.xs |
|---|---|
| Message-ID | <D960CB61B694CF459DCFB4B0128514C205B7AB71@exadv11.host.magwien.gv.at> |
Hi,
> SV* perl_get_sv("package::varname", FALSE);
>
>This returns NULL if the variable does not exist.
>
>If you want to know if this variable (or any other SV) is actually
>defined, you can call:
>
> SvOK(SV*)
Note that this works for global (package) variables only.
Is there a similar way to access lexical variables?
Regards, Ferry
--
Ing. Ferry Bolhár-Nordenkampf
Magistrat der Stadt Wien - MA 14
A-1010 Wien
E-mail: [email protected]