The "\" symbol has a special meaning in Perl: it helps to escape other symbols (like quotes) and gives some letters the special meaning (for example, "\n" is a newline). You have either to use single quotes, or to escape both slashes with another slashes (so '\\' eq "\\\\"). Read
Quote and Quote like Operators for more information.
Sorry if my advice was wrong.