my $str = "a load of constant stuff..." . ($option ? "optional bit in the middle " : '') . "loads more stuff";