in reply to Re: Behaving appropriately based on ref() result
in thread Behaving appropriately based on ref() result

Of course, the overhead difference is hardly such that your typical Perl program would suffer, but certainly if you are being speed conscious. Especially since you can arrange your constructs so that the most common options come first.

I often prefer dispatch for the ease of adding new items.

                - Ant
                - Some of my best work - (1 2 3)

  • Comment on Re^2: Behaving appropriately based on ref() result