ikegami, I just re-read your response and must admit that I am now confused and a bit curious...not by your response (which is clear and wise), but by the result I just got. I just re-tested my old code (without the chomp()) and it still fails. But when I run it with the chomp(), it works.

Your information regarding readdir() is, in fact, what I, too, had assumed (more from naivete rather than real knowlege) in the original code and was why I hadn't thought to do the chomp()).

Unfortunately, now I'm not sure I understand why adding in the chomp() would matter...would make the code succeed.

I think it's time to go back and dig into the original version of my code (i.e., pre-chomp() version) and see if I can ferret out what is going on. I'm sure it is a mistake that I've made in the code; I'm just not sure where to start beyond what I'd already done. But is should be a good learning and growing experience for me.

For what it's worth, I'm running on Perl 5.8.0

Again, thanks, ikegami

ack Albuquerque, NM

In reply to Re^4: 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.