in reply to Re: Dumping undef as a constant produces strange REFCNT
in thread Dumping undef as a constant produces strange REFCNT
It does indeed seem to be counting down as more use/require etc statements are added or eval'd. In fact, any successful eval will also lower the count. Something as simple as eval('#') lowers the count by one.
The below gives me the highest output count I can get of 2147483604. My guess would be that 2147483647, max val for signed long, is the starting point.
I'm also curious whether this is some real count value or some artifact of Devel::Peek
require Devel::Peek; Devel::Peek::Dump(undef); # SV = NULL(0x0) at 0x993788 # REFCNT = 2147483604 # FLAGS = (READONLY)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Dumping undef as a constant produces strange REFCNT
by ikegami (Patriarch) on Aug 24, 2011 at 23:50 UTC |