in reply to Re^3: Can't happen bug follow-up -- Can an if/else be bypassed?
in thread Can't happen bug follow-up -- Can an if/else be bypassed?

In this case, the << marks a here-doc, and '}' is the marker. This is equivalent:

$_ = <<'END_OF_STRING'; if ($some_condition) { return $X; } else { return $Y; END_OF_STRING die "not reached";

You can find here-docs documented in perlop.