if ($some_condition) { return $X; } else { return $Y; } die "not reached"; # but see comment below