good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: elsif chain vs. dispatchby ikegami (Patriarch) |
on Apr 27, 2009 at 02:57 UTC ( [id://760243]=note: print w/replies, xml ) | Need Help?? |
The slow bit is the function call, not the hash lookup which you'd also have to do with the symtab anyway. With a hash, you have better control over what inputs are allowed and how they are dispatched. With symtab:
With hash;
with a one-time setup of
In Section
Seekers of Perl Wisdom
|
|