in reply to Why the following code shows a compilation error?
And carriage return is a must if the string terminator is at the last line of a script.
see perldoc perlop (Quote-Like-Operators)