in reply to Re^2: Confusion over B::PVin thread Confusion over B::PV
The test is looking to see that the scalar does not look like a string
You want SvPOK(sv) which is defined to be SvFLAGS(sv) & SVf_POK and is available as $sv->POK.