Array versus hash isn't an issue if you ask me. The penalty you pay for constants is probably larger than those for a hash lookup. Constants are really subroutines, and subroutine calls use the stack.Constant subs get (or at least should get) their values inlined at compile time. No runtime penalty there.
In reply to Re: Re: %hash (@array && use constant) in Modules
by Elian
in thread %hash (@array && use constant) in Modules
by abaxaba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |