On 19/03/07, via RT Christopher Lane <perlbug-followup@perl.org> wrote: > The following prints "yes" (ie. works) > > perl -we 'print(("a" =~ m/\C/) ? "yes" : "no", "\n")' > > But this (added [] around \C) prints a warning and doesn't work > (prints "no") > > perl -we 'print(("a" =~ m/[\C]/) ? "yes" : "no", "\n")' > Unrecognized escape \C in character class passed through in regex; > marked by <-- HERE in m/[\C <-- HERE ]/ at -e line 1. > > I tested this with and without 'use charnames' > This also appears to be the case with \X I'm not sure that \C or \X would be useful, or would even make sense, in character classes. But that doesn't seem to be documented in perlre.Thread Previous