1 2 3 4 5
my $variable = (condition1 ) ? 'result1' : (condition2 ) ? 'result2' : (condition3 ) ? 'result3' : 'fallthrough' ;