$x = ($d) ? do_one() : ($e) ? do_two() : ($f) ? do_three() : do_default() ;