in reply to Why is this string only PARTIALLY interpolated?

Single quotes do not interpolate.

In the $y example, you've got unbalanced quotes. The opener is a single quote, the end one is double. I'll bet you've mistyped the opening quote as single instead of double when you wrote this post.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.