in reply to Re^2: qw "$string $string" doesn't interpolate
in thread qw "$string $string" doesn't interpolate
...Not DWIM.You need to stop saying DWIM. Of course q"" should not interpolate because that's now how the quoting operators work. The quoting operators allow you to use alternate delimiters so you can get the benefits of ' (no interpolation, q) and " (interpolation, qq) without the need to escape ' and " in the strings.I'm not sure what your point was...Should q"" interpolate or not?
On the 3rd hand, things like s"$foo"$bar" behave differently from s'$foo'$bar',... My point is, qw is not apparently single-quotish in nature, but it would DWIM to have it double-quotish using double quotes, as with other operators.qw is single-quotish in nature (a quoting operator which doesn't interpolate). s and m are not quoting operators, they are "Regexp Quote-Like Operators".
|
|---|