$ cat test $var = 'c:\test\file.txt'; print "$var\n"; $ perl test c:\test\file.txt #### print '\\'; # prints "\" not "\\"