[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Perl Linux/Unix to Windows 2003



Jerry Yu wrote:
> / works, if I recall correctly from my experience with Cygwin's port 
> of perl on Windows NT 4...
> however, under cygwin, the reference of the absolute path differs a 
> bit in that it is now /cygdrive/c to get to root of C:
Either \ or / will work *INTERNALLY* to Perl.  Any path you give to a 
builtin like open or unlink will transparently knock your toothpicks the 
right way so you don't get an extreme case of backwhackitis ( 
"somedir\\blah\\fooble.txt" ).

Anything that's passed to an *EXTERNAL* entity via backticks or system() 
does need the backslash form instead.  I believe the File::Spec module 
will convert and/or has routines for programatically building paths in 
the underlying OS' expected format.