On Monday, April 22, 2002, at 04:18 , Gary Stainburn wrote:
> On Monday 22 April 2002 12:07 pm, Marc te Vruchte wrote: >> Well, there isn't a real case statement as in C or Pascal, but, you can >> emulate one through a block =) we went around the Idea of also using a HashSwitch - if you were doing the 'traditional' re-reference to some other function based upon a 'switch' value: http://www.wetware.com/drieux/CS/lang/Perl/Beginners/HashSwitch.txt by caching the address of the function indexed by the 'reference' $response = $lookup_func{$statefield}->() ; So while I totally agree with the other two strategies proposed, I'd have to go with this process of building a hashOfSubs to solve the more interesting class of switch case uses... I'd also probably argue that the lack of a 'switch' case as an explicit means to tell the compiler to build a branch tree structure does mean that one has to be sure that one's branch tree is structured the way one wants it..... ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]