Ikegami, I found your comments helpful.

As far as WinNT and W2K, I will plead probably too ignorant to have even tried using forward slash on the command line. I don't remember forward slash working but that may be because I just never tried as part of usual practice.

Maybe you can shed some light on the following...I am not sure why your "type" command works and mine doesn't! This doesn't appear to be a "syntax error". "cat" works on my system, but I have cygwin installed. I don't know why "type" can't find the file specified, but yet "cat" can.

C:/TEMP/comment.txt #I know from experience that I can open this #filepath with Perl on Win XP and read it. C:\Projects>type C:/TEMP/comment.txt The syntax of the command is incorrect. C:\Projects>type "C:/TEMP/comment.txt" #doesn't work The system cannot find the file specified. #my command above looks similar to yours, but doesn't appear #to work for unknown reasons...your command works.... >type "c:/documents and settings/ikegami/bar.txt" foo C:\Projects>type 'C:/TEMP/comment.txt' #did work either The syntax of the command is incorrect. #but I didn't expect it to. C:\Projects>cat C:/TEMP/comment.txt (this works)

In reply to Re^5: Trouble using a Win32 file path in an array by Marshall
in thread Trouble using a Win32 file path in an array by geo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.