$foo = 'C:\\'; # if you had 'C:\' then the ' would instead be escaped instead of ending the string.