in reply to Perl_call_pv(, , G_ARRAY) returns references as integer type SVt_IV
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.:
if (SvROK(sv)) ref = SvRV(sv);
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl_call_pv(, , G_ARRAY) returns references as integer type SVt_IV
by rogue_tache (Novice) on Oct 01, 2012 at 16:08 UTC |