use / everywhere because Perl at Windows understand it very well unlike Windows itself
I've been told (on PerlMonks) that Windows system calls understand / just fine. It's the individual tools and shell commands that don't.
In fact, it seems the shell tools understand / just fine if it's in quotes:
G:\>md /test
The syntax of the command is incorrect.
G:\>md "/test"
G:\>copy nul /test/file
The syntax of the command is incorrect.
G:\>copy nul "/test/file"
1 file(s) copied.
G:\>dir /test
Invalid switch - "".
G:\>dir "/test"
Volume in drive G is CLFS01-USR-N
Volume Serial Number is 5C24-AC1F
Directory of G:\test
2007/06/08 09:21 AM <DIR> .
2007/06/08 09:21 AM <DIR> ..
2007/06/08 09:21 AM 0 file
1 File(s) 0 bytes
2 Dir(s) 81,590,624,256 bytes free
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|