Skip to content

SV is "PVNV" despite being assigned/used in numeric context only #19589

@sisyphus

Description

@sisyphus

This came up in #19585.
AFAICS, it's happening in current blead, all the way back to perl-5.8.8.
Maybe it's nothing to worry about.

Steps to Reproduce

$ perl -MDevel::Peek -le '$x = 1.0; $y = $x + 0; Dump $x;'
SV = PVNV(0x23426160) at 0x23448a38
REFCNT = 1
FLAGS = (IOK,NOK,pIOK,pNOK)
IV = 1
NV = 1
PV = 0

Expected behavior

Given that $x was created as a number, and then used only in numeric context, the thing that I did not expect was its description as "PVNV" in the first line of output.
Should I just ignore that ?
I'm unaware of any serious consequences associated with this behaviour.

Perl configuration

AFAIK, it happens on any and all perl configurations going back to 5.8.8 and perhaps earlier.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions