in reply to Re: Re: Perl Idioms Explained: && and || "Short Circuit" operators
in thread Perl Idioms Explained - && and || "Short Circuit" operators
This of course means that the possible cases (but not the test value) are static and must be known at compile time which decreases flexibilty but increases speed.switch(test){ case 'a': # do something case 'b': # do something else case 'c': # do something else }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Perl Idioms Explained: && and || "Short Circuit" operators
by demerphq (Chancellor) on Oct 22, 2003 at 23:35 UTC | |
by fletcher_the_dog (Friar) on Oct 23, 2003 at 00:36 UTC |