$x = ($d) ? do_one() : ($e) ? do_two() : ($f) ? do_three() : do_default() ;
In reply to Re: Mr. Ternary is greater than Mrs. If Else
by jZed
in thread Mr. Ternary is greater than Mrs. If Else
by PerlPhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |