The way hashes work, Perl cannot optimize $hash{constant_key} for you. There was an article on Perl.com which explained them recently; read it and think about it a bit.

Makeshifts last the longest.


In reply to Re: The Cost of Nested Referencing by Aristotle
in thread The Cost of Nested Referencing by shotgunefx

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":