<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>it fetches HvUSEDKEYS(hv);</p>
<div> </div>
<p>which generally just fetches a structure member (it's a little more complex if you're iterating over the has, or if it's tied)</p>
<p><br /></p>
<p><br /></p>
<p>Dean</p>
<p>On 2020-06-01 20:06, Mathew Robertson wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">A question for the audience.
<div> </div>
<div>Does "scalar(keys %foo)" materialise the list of keys, grabs its length, then throw away the memory?  .. or is Perl smart enough to see that context, to understand that it just needs to count the keys ?</div>
<div> </div>
<div>thx</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br /> Melbourne-pm mailing list<br /> <a href="mailto:Melbourne-pm@pm.org">Melbourne-pm@pm.org</a><br /> <a href="https://mail.pm.org/mailman/listinfo/melbourne-pm">https://mail.pm.org/mailman/listinfo/melbourne-pm</a></div>
</blockquote>
</body></html>