in reply to Re: ActiveState Perl: Forward or Backward Slash?
in thread ActiveState Perl: Forward or Backward Slash?

Off topic a little but cmd does understand forward slashes:

H:\>cd /perl H:\perl>

A lot of command line utilties don't though, so your point is valid, in that if you use system() to run external Windows programs then you should probably use escaped backslashes unless you know it's going to work. I've been caught out a few times :)

Replies are listed 'Best First'.
Re^3: ActiveState Perl: Forward or Backward Slash?
by ww (Archbishop) on Sep 20, 2005 at 15:48 UTC
    puploki's screen capture appears to demo cmd's behavior under WinXP;
    monarch asserts [perhaps just a tad abrasively] what I see under w2k (and, IIRC, earlier 'doze).
Re^3: ActiveState Perl: Forward or Backward Slash?
by monarch (Priest) on Sep 20, 2005 at 13:34 UTC
    What are you smoking?
    D:\Temp>cd /temp The syntax of the command is incorrect. D:\Temp>cd \temp D:\Temp>

    Updated: tested on WinNT

      What are you smoking?

      Clean air maybe? Tested with Windows XP

      C:\>cd /WINDOWS C:\WINDOWS> _

      Cheers, Sören