I forgot to chomp($entry)!
What a rookie mistake I made! Thank you. I was thinking that readdir() didn't put CRLFs in...but apparently it does. When I added in the chomp($entry) the code works perfectly!
Even while debugging I failed to see the extra characters; I was too focused on the non-CRLF names and characters...looking for unexpected included extra spaces, etc.
Thank you apl. And thanks to everyone who responded. Your support and time mean the world to me and I am sincerely embarassed by my mistake and appreciate your time and efforts.
In reply to Re^2: Directory checking on Windows XP
by ack
in thread Directory checking on Windows XP
by ack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |