Thanks, GrandFather, for your response. I appreciate it very much. As with all the other responders, your wisdom always helps me to grow.

I posted an update to my node and included, as most of the responders wisely suggested, a block of code to illustrate what I am inquiring about. It is not, of course, the full code; but I think it highlights in a way that portrays what I am doing.

I am including in $entry the full directory path specification, so I'm not clear on why the test would fail if I'm executing the code in a directory different from the one I'm trying to process. But I presume I'm not actually doing what I think I am doing...which is what has me perplexed.

I am confident that the -d filetest operator is working properly and that it works just fine on Windows (as you most appropriately noted from your own experience). So I'm likewise confident that I'm doing something wrong.

As I noted in response to another's monk's response, I've tried the code through the debugger and $entry checks out with the proper full path specification. And, of course, I can't see with the debugger what the -d function thinks it is seeing other than the value of $entry. It does, of course, also confirm that it is the }else{ clause that gets executed.

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.