in reply to Re^2: Pattern matching fails because of special characters
in thread Pattern matching fails because of special characters

you are right

perlrecharclass#Special-Characters-Inside-a-Bracketed-Character-Class

Characters that may carry a special meaning inside a character class are: \ , ^ , - , and , and are discussed below. They can be escaped with a backslash, although this is sometimes not needed, in which case the backslash may be omitted.

Mea culpa!

(time to retire? :)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

PS: I'm afraid perldoc.perl.org "improved" to the worse.

  • Comment on Re^3: Pattern matching fails because of special characters