$filename = "C:\\foo.txt"; # as does this $filename = 'C:\foo.txt'; # but this won't because perl thinks the \ relates to the ' $path = 'C:\some\path\'; $fullpath = $path . $filename; # however this is fine $path = "C:\\some\\path\\";