Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Strange memory growth

by Anonymous Monk
on Feb 16, 2018 at 14:46 UTC ( [id://1209306]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Strange memory growth
in thread Strange memory growth

I guess that I'm still confused. When I look at Huck's solution, I see that short-circuit conditional expression optimization will stop the evaluation at the first "false" result. Therefore, as far as I can see, no auto-vivification would occur. My question was therefore whether it actually mattered which function-call Huck used.

Replies are listed 'Best First'.
Re^5: Strange memory growth
by Marshall (Canon) on Feb 16, 2018 at 21:48 UTC
    Yes that is true, the function used does not matter. The solution from huck is fine. I updated my original post with a similar example.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-24 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found