Kc12349 has asked for the wisdom of the Perl Monks concerning the following question:
This is kind of just idle wondering, but does anyone have an idea of where 'REFCNT = 2147480012' arises from when dumping undef as a constant.
use Devel::Peek; my $scalar; Dump($scalar); Dump(undef); Dump(5); Dump('abc'); # SV = NULL(0x0) at 0x250b98c # REFCNT = 1 # FLAGS = (PADMY) # SV = NULL(0x0) at 0x9f3788 # REFCNT = 2147480012 # FLAGS = (READONLY) # SV = IV(0x250b998) at 0x250b99c # REFCNT = 1 # FLAGS = (PADTMP,IOK,READONLY,pIOK) # IV = 5 # SV = PV(0x261b534) at 0x25021b4 # REFCNT = 1 # FLAGS = (PADTMP,POK,READONLY,pPOK) # PV = 0x2716f54 "abc"\0 # CUR = 3 # LEN = 4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dumping undef as a constant produces strange REFCNT
by ikegami (Patriarch) on Aug 24, 2011 at 22:40 UTC | |
|
Re: Dumping undef as a constant produces strange REFCNT
by BrowserUk (Patriarch) on Aug 24, 2011 at 21:44 UTC | |
|
Re: Dumping undef as a constant produces strange REFCNT
by charlesboyo (Beadle) on Aug 24, 2011 at 21:45 UTC | |
by Kc12349 (Monk) on Aug 24, 2011 at 22:38 UTC | |
by ikegami (Patriarch) on Aug 24, 2011 at 23:50 UTC |