diff options
author | Yves Orton <demerphq@gmail.com> | 2016-11-02 10:53:18 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2016-11-02 10:57:12 +0100 |
commit | 6d31468305788870c92226c07d8edd65deb96ea5 (patch) | |
tree | 08747e195977b4e54a93712e3a8e75757f935b18 /utils | |
parent | 26e9d721e16d30fc642c2452ef40e778a6302f3f (diff) | |
download | perl-6d31468305788870c92226c07d8edd65deb96ea5.tar.gz |
clarify behavior single quote regexps
The documentation was ambiguous about what type of interpolation
was disabled in single quote regexps. It is a bit debateable whether
"\n" in a regex is a regexp meta-escapes which happens to match "\n",
or if it is a string escape that needs to be interpolated. Since single
quote regexps should allow regexp meta-escapes (for instance \s), then
it makes more sense to treat \n and \x{..} also as regexp meta-escapes,
which then leaves nothing but variables that /could/ be interpolated.
This effectively officially defines the current behavior as correct,
and will allow us to close a number of tickets because of it. In
particular we can close #21491 as "not a bug", and probably also related
tickets.
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions