my $thing = ($cond1) ? "Foo" : ($cond2) ? "Bar" : "Baz";