Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Devel::Size reports different size after hash access

by GrandFather (Sage)
on Oct 25, 2016 at 20:20 UTC ( #1174730=note: print w/replies, xml ) Need Help??


in reply to Devel::Size reports different size after hash access

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
  • Comment on Re: Devel::Size reports different size after hash access

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1174730]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2018-11-18 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (205 votes). Check out past polls.

    Notices?