Otherwise, your benchmarks apppear to confirm the claim you think they are refuting. Your first code example builds the hash(ref) once and only accesses it at run time. That's what "ref" does in your benchmark. The second code example builds the hashref every time it is run. That's what "hash" does in the benchmarks. It costs extra time and the results show it does.
Anno
In reply to Re: How to access a static hash.
by Anno
in thread How to access a static hash.
by gam3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |