Thanks for the defense, ++ikegami. :-) I was at least ambiguous: in the modern world of Microsoft pushing PowerShell and de-emphasizing (even taking it out of extended context menus) cmd.exe, I need to train myself to be explicit about testing in cmd (though in this case, the cmd vs ps behavior was effectively the same), so I also ++footpad :-). (Besides, my "in windows" mindset is still often muddied by using gnuwin32 ports to make cmd.exe more usable, and I have to be careful to not include that in pure-windows advice without pointing it out. :-) )

edit: And yes, I understand ikegami's main point wasn't just my defense / validating my ego. ;-) I love the back and forth, with the additional information, and corrections when things are incomplete, ambiguous, or downright wrong. I have learned from this thread, and hope the OP has as well. (When I think I can help the OP, or when I want something clarified to help me learn, or both, are my usual times to participate.)


In reply to Re^6: beginners trap: one liner by pryrt
in thread solved: beginners trap: one liner by toohoo

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.