Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
SvTYPE() merely tells you the type of the storage container; it doesn't in general say what the logical type of the SV is.
Since 5.12.0, the SVt_RV sv type has been abolished, on the grounds that the SVt_IV container type is perfectly capable of holding a reference. In general you shouldn't be basing code on tests like SvTYPE(sv) == SVt_RV; instead you should be testing the relevant flags, e.g.:
Dave. In reply to Re: Perl_call_pv(, , G_ARRAY) returns references as integer type SVt_IV
by dave_the_m
|
|