![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: Devel::Size reports different size after hash accessby GrandFather (Sage) |
on Oct 25, 2016 at 20:20 UTC ( #1174730=note: print w/replies, xml ) | Need Help?? |
You store a number then access it as a string so Perl caches the stringised version of the number along with the number. Try quoting the value so it's stored as a string instead of as a number to check (works for me - size is stable).
Premature optimization is the root of all job security
In Section
Seekers of Perl Wisdom
|
|