}
else if (SvTYPE(sv) < SVt_PVNV)
sv_upgrade(sv, SVt_PVNV);
- if (SvIOKp(sv) &&
+ if (SvNOKp(sv) && !(SvIOK(sv) || SvPOK(sv))) {
+ SvNOK_on(sv);
+ }
+ else if (SvIOKp(sv) &&
(!SvPOKp(sv) || !strchr(SvPVX(sv),'.') || !looks_like_number(sv)))
{
SvNVX(sv) = SvIsUV(sv) ? (NV)SvUVX(sv) : (NV)SvIVX(sv);
char *
Perl_sv_2pv(pTHX_ register SV *sv, STRLEN *lp)
{
- sv_2pv_flags(sv, lp, SV_GMAGIC);
+ return sv_2pv_flags(sv, lp, SV_GMAGIC);
}
char *
STRLEN
Perl_sv_utf8_upgrade(pTHX_ register SV *sv)
{
- sv_utf8_upgrade_flags(sv, SV_GMAGIC);
+ return sv_utf8_upgrade_flags(sv, SV_GMAGIC);
}
/*
char *
Perl_sv_pvn_force(pTHX_ SV *sv, STRLEN *lp)
{
- sv_pvn_force_flags(sv, lp, SV_GMAGIC);
+ return sv_pvn_force_flags(sv, lp, SV_GMAGIC);
}
/*