At 11:19 AM 6/3/02 -0700, drieux wrote: >[ name withheld to protect the innocent.] >[..] >> From reading your response, below, I take it that you don't think very >> highly of the SWITCH command? Can you elaborate just a little for me as >> to why? You see, I've dabbled in other languages (most notably VB and >> BASH shell scripting) and I've gotten quite used to having a CASE or >> SWITCH type statement at my disposal, and, to be honest, I was surprised >> that I didn't have it in Perl. I guess having "grown up" using it, I >> didn't know why I shouldn't... >[..] > >I think almost everyone who comes to perl has that 'crisis of faith' >moment when they review > > perldoc -q switch > >and wonder - ok, so why no switch/case statement, because, well I >have always done it that way....
For those who haven't seen it, http://search.cpan.org/search?dist=Switch is officially blessed as a Good Way To Do It. And it approaches the mind-bending implementation planned for Perl 6. -- Peter Scott Pacific Systems Design Technologies Boston Perl Classes in July: http://www.perldebugged.com/ http://stemsystems.com/class/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]