>Sorry, I thought I was clear and properly punctuated.
It was a dig at your use of the sigil-less language in your example :-P

>In the second case, you're calling a function which can produce any error
>that all of the functions in table are capable of generating.
I have no idea what you mean by this, are you sure you're not carrying over
some freaky Python conventions to Perl?

>This may also include an illegal reference into table in the first place.
Yes, and?

>In the first example, you eliminate the indexing into the dispatch table as a
>seperate step from actually making a subroutine call.
That's an phrase. Regardless, your proposal still would not solve the problem
of using a non-existent subruotine, for that you'd need:

exists( $dispatch{$sub} ) ? $dispatch{$sub}->() :
         warn "Key <$sub> does not exist in the dispatch table";
-- 
Free map of local environmental resources: http://CambridgeMA.GreenMap.org
--
MOTD on Boomtime, the 35th of The Aftermath, in the YOLD 3173:
You don't need a Swiss Army knife to cut yourself, a piece of paper will do 
just fine. --JP

Reply via email to