in reply to Re^5: Finding Oldest File in a Directory
in thread Finding Oldest File in a Directory

What I am trying to draw your attention to is that it has ONLY the possibility of returning directory names which is not what the OP is asking for.

-M

Free your mind

  • Comment on Re^6: Finding Oldest File in a Directory

Replies are listed 'Best First'.
Re^7: Finding Oldest File in a Directory
by Aristotle (Chancellor) on Oct 08, 2005 at 19:29 UTC

    You are wrong. -d simply means that directories will be listed as themselves. From the man page:

    -d     List  names of directories like other files, rather than listing
           their contents.

    Perl Mouse is perfectly right about this.

    Makeshifts last the longest.

    A reply falls below the community's threshold of quality. You may see it by logging in.