Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
\Q and \E don't work inside interpolations. They only work in regexp literalsFascinating theory, but easily proven wrong: Your example shows a \Q being used inside of a quoted string, not inside of a string value being interpolated (into a string or regex). You've misunderstood how "interpolation" was originally used. I'll agree that the original use of "interpolation" wasn't clear enough. Though, double-quoted strings allow interpolation but I wouldn't call a quoted string that didn't contain any variables "an intepolation". - tye In reply to Re^3: Unrecognized escape \Q passed through in regex ('interpolations")
by tye
|
|