in reply to RE: RE: Remove '.' and '..' from a list of filenames
in thread Remove '.' and '..' from a list of filenames

Ahh, the problem is that it filters those out when it shouldn't. Sorry, reversed logic strikes. In other words,
/^\.$/
matches both dot and dot-newline, and if you were expecting it to match only dot, you could be in for a big shock.

I've edited the original note to reflect what I meant, not what I said. {grin}

-- Randal L. Schwartz, Perl hacker