if (defined (my $x=foo())) { return $x }