Thank you, moritz, for you kind response. I apprecaite it very much, indeed.

Turns out that my mistake was that I forgot to chomp() $entry before testing. apl suspected that could be the problem and, indeed, when I added that in, everything works just fine.

It was such a rookie mistake and is one that I am embarassed to have made. I didn't realize that readdir() would put in the extra characters; but apparently it does.

I just too focused on the details of what was being put into $entry (in terms of the interior characters) that I forgot to look at what was at the end. As part of my troubleshooting I normally am careful to put some sort of bracketing character (e.g., [ and ]) just for that very purpose. I broke my own process; and am embarassed at the consequences!

Thank you, most sincerely, to everyone that responded. Your patience, help, and gentle responses were most kind. Your time and efforts are most appreciated.

ack Albuquerque, NM

In reply to Re^2: Directory checking on Windows XP by ack
in thread Directory checking on Windows XP by ack

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.