No, there is no perl intrinsic type that doesn't have a true value. And there are more than eight. We have: HASH, ARRAY, SCALAR, CODE, GLOB, IO, REF, and FORMAT, and then there is an intrinsic type that doesnt have its own designation, that being qr// objects, which report themselves as SCALAR but are actually not SCALAR refs. Oh, and i think in later perls you also have VERSION, (or something like that) but I could be mistaken.
Regarding making reftype() return PL_no is that one must assume that people are doing
if (defined(reftype($x))) { ... }
or variants thereof. At least thats what I would expect the objection would be to changing the return of reftype. Hence my idea of providing a _reftype().
In reply to Re^8: Why reftype and blessed are making my life harder than it needs to be (XS/_reftype)
by demerphq
in thread Why reftype and blessed are making my life harder than it needs to be
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |