Perplexed with backslashes
Posted on 2003-02-26
I'm trying to run some code in perl under cygwin...
$sshpath=".ssh\\identit*"; # 2 backslashes-one escapes the other
@args=("rm", "-v", "$sshpath");
As it is here, the output is ".ssh\\identity* doesn't exist" (notice it iterpreted it as 2 backslashes)
So then I thought, "oh, i guess with system() I don't need to escape my backslash"
So then I tried:
and now my output is ".sshidentity* doesn't exist"
So when I DO escape the backslash, it treats it as two backslashes and when I don't escape the backslash, it treats it as no backslashes????
How do I get ONE backslash????