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.
In reply to Re^3: Pattern matching fails because of special characters
by LanX
in thread Pattern matching fails because of special characters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |