You can use the print statement to see what the strings are interpreted as, easier to see why the statement acts as it does.
print 'a';
print 'a\
';
This gives output:
a
a
If you want a slash followed by a newline you can simply just add an extra newline in the string.
print 'a\\
b';
Output:
a\
b