On Sun, 29 Jul 2001 19:36:43 -0400, Bryan C. Warnock wrote: >$x = ($default,$a,$b)[$b<=>$a]; # Much like I did before Note that $x = cond? a : b does lazy evaluation, i.e. the value for a or for b is only fetched when it's actually needed. In your construct, they're all fetched anyway, before the condition is even checked. -- Bart.
- Re: if then else otherwise ... John Porter
- Re: if then else otherwise ... raptor
- Re: if then else otherwise ... raptor
- Re: if then else otherwise ... Bart Lateur
- FW: if then else otherwise ... Brent Dax
- Re: if then else otherwise ... Bryan C . Warnock
- Re: if then else otherwise ... raptor
- RE: if then else otherwise ... Sterin, Ilya
- Re: if then else otherwise ... Bryan C . Warnock
- Re: if then else otherwise ... Bart Lateur
- Re: if then else otherwise ... Bryan C . Warnock