in reply to How can I match '$ (literally)

One thing I have found in using regex's in Perl is that if I am unsure whether a character should be escaped to get the literal character, I could escape it anyway.

For example: I have escaped ' " $ | because I was not quite sure about matching the literal character and didn't want to take chances that the regex didn't work. This may be cheating but also in the spirit of programming Perl (IMHO).

Mick