in reply to Re^2: When should I use a dispatch table?
in thread When should I use a dispatch table?
You have mentioned an alternative way of determining which sub to dispatch. Unfortunately it may actually be less efficient than exists. You are fetching the value and testing it for truth where exists need only check to see if the key is present in the hash.
Cheers - L~R
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: When should I use a dispatch table?
by runrig (Abbot) on Dec 01, 2006 at 07:21 UTC |