in reply to Reading Directory

On Unix, every directory contains the directory . which is a reference to itself, and .., which is a reference to the parent directory. If you don't want to consider those, filter them out from the array.

(Note that "reference" is a bit vague, I think it's more like a hard link, but I'm not entirely sure).

Replies are listed 'Best First'.
Re^2: Reading Directory
by MidLifeXis (Monsignor) on Jul 14, 2009 at 13:33 UTC

    See a tutorial I just ran across, especially section 6.1.1.3 and 6.1.3. It seems to be a reasonable description.

    --MidLifeXis

    The tomes, scrolls etc are dusty because they reside in a dusty old house, not because they're unused. --hangon in this post