in reply to Re^4: How to capture the "isn't numeric" warning?
in thread How to capture the "isn't numeric" warning?
Scalar-Util-1.5 (perl5.30.0):C:\>perl -MScalar::Util -MDevel::Peek -le "Dump(Scalar::Util::looks_li +ke_number('abc'));" SV = PVNV(0x726f74) at 0x723250 REFCNT = 2147483647 FLAGS = (IOK,NOK,POK,READONLY,pIOK,pNOK,pPOK) IV = 0 NV = 0 PV = 0x7229b4 ""\0 CUR = 0 LEN = 12
My assertion the "the empty string is returned" could well be deemed incomplete because the IV and NV slots are also filled.C:\>perl -MScalar::Util -MDevel::Peek -le "Dump(Scalar::Util::looks_li +ke_number('abc')); SV = PVNV(0x2ea0a8) at 0x2e8150 REFCNT = 2147483647 FLAGS = (IOK,NOK,POK,READONLY,PROTECT,pIOK,pNOK,pPOK) IV = 0 NV = 0 PV = 0x6ff24e83 "" CUR = 0 LEN = 0
|
|---|