Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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: (3)
As of 2019-02-19 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I use postfix dereferencing ...









    Results (101 votes). Check out past polls.

    Notices?