in reply to Is an SV and IV or a PV or an NV or a UV? How can I tell?

or? A scalar can hold many of those at the same time:

$ perl -MDP -wE'DDump Data::Peek::triplevar"\x{03c0}",3,3.14159265' SV = PVNV(0x8760c9c) at 0x817d0a4 REFCNT = 1 FLAGS = (IOK,NOK,POK,pIOK,pNOK,pPOK,UTF8) IV = 3 NV = 3.14159265 PV = 0x818bdf0 "\317\200"\0 [UTF8 "\x{3c0}"] CUR = 2 LEN = 12 $

With Data::Peek's DDual () you can get all parts seperate into different scalars:

$ perl -MDP -wE'DPeek for DDual Data::Peek::triplevar"\x{03c0}",3,3.14 +159265' PV("\317\200"\0) [UTF8 "\x{3c0}"] IV(3) NV(3.14159) SV_UNDEF IV(0)

FWIW \x{03c0} is the Unicode representation for π (\N{GREEK SMALL LETTER PI} when using use charnames;)


Enjoy, Have FUN! H.Merijn