in reply to NT paths and regexp

That's because "\\a" still has a backslash, and backslashes followed by a letter may have a special meaning for the regex. /\a/ matches a bell character (^G), and not a backslash followed by an a.

In general, $str =~ /$str/ is often not a match due to the special meaning of characters in $str.

Abigail