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.