Pablo Fischer wrote at Sat, 26 Jul 2003 23:35:14 +0000:

> I need to evaluate a lot of conditionals, and of course the use of a lot of 
> if's its not the 'right' way, so Im using something like this:
> 
> CASE: {
>       ($string == "match1") && do {
>       actions..
>       last CASE;
>       };
>       ($string == "match2") && do {
>       actions..
>       last CASE;
>       };
>       and a lot more..
> }
> 
> The question, where does the 'default' case starts?. The last 5 years I have 
> been programming in C/C++/C#/Php.. C-styles languages, so in Perl, where does 
> the 'default' case begins?

You might also have a look to the Switch module (from CPAN).
It makes it easier to work with good old known 
switch (...) {
   case X {...}
   case Y {...}
   case Z {...}
}
style.


Greetings,
Janek

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to