-alpha- wrote:
John W. Kennedy wrote:
>Never, ever, ever use '\' to separate directories But why? On mswin filesystems, '\' is default delimiter AFAIK. Un *nix i'll use '/'.

As I explained, Windows accepts (and MS-DOS did before it) either '/' or '\' in file names. The COMMAND.COM and CMD.EXE shells require '\' because '/' was already assigned to another use in MS-DOS 1.0, but even they will accept '/' if the path is enclosed in quotation marks.

Inside a program, '\' can cause problems, so it's easier and safer to use '/' (and also helps make your program portable).

--
John W. Kennedy
"But now is a new thing which is very old--
that the rich make themselves richer and not poorer,
which is the true Gospel, for the poor's sake."
  -- Charles Williams.  "Judgement at Chelmsford"

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to