assignment. Either use single-quotes or escape your backslashes by doubling them. Your last quotation mark is being interpreted as a literal quotation mark in the string, which is totally screwing up your next few lines of code, because Perl is treating it all as part of the same string.