in reply to Scalar Storage Type Discovery


Devel::Peek lets you do this. From the pod:
use Devel::Peek; $a = 42; Dump $a; The output: SV = IV(0xbc818) REFCNT = 1 FLAGS = (IOK,pIOK) IV = 42

The PVIV, IV, RV and other types are explained in perlguts.

For anyone who is interested, there is a good explanation in the Internal Variables section of Simon Cozens Perl 5 Internals.

--
John.

Replies are listed 'Best First'.
Re^2: Scalar Storage Type Discovery
by tadman (Prior) on Aug 23, 2002 at 09:19 UTC
    Thanks! That is exactly what I meant. I knew what they were, but not how to get at them without being in XS mode.

    I have this crazy idea that this is somehow connected with my trouble in DBD::mysql Unusual Behavior.