home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!caen!uvaarpa!mmdf
- From: Rick Emerson <rick@ssg.com>
- Subject: WANTED: how to sort a directory
- Message-ID: <1992Dec21.160133.6260@uvaarpa.Virginia.EDU>
- Sender: mmdf@uvaarpa.Virginia.EDU (Mail System)
- Reply-To: rick@ssg.com
- Organization: The Internet
- Date: Mon, 21 Dec 1992 16:01:33 GMT
- Lines: 20
-
- I have a directory filled with files (current count is over 2,000 files)
- that have an eight digit (sequence) number as their name. As new files are
- added to the directory, old files may be removed from the directory. Note,
- however, not all old files are removed (files over 90 days old, for example,
- are not automatically killed off). I'm concerned that new (higher numbered)
- files not appear in the directory interleaved with older, lower numbered
- files.
-
- Is there a simple, perl way to actually sort the files in ascending order?
- For several reasons I want to avoid sorting a list of file names; the actual
- directory must be guaranteed to have the file names in ascending order.
-
- Rick
-
-
- | Richard B. Emerson | Replies may be sent to: |
- | System Support Group | rick@ssg.com |
- | 940 Delaware Avenue |-------------------------------------------------+
- | Lansdale, PA 19446 USA | "When you ski, you dance with the mountain -- |
- | Voice: 215.855.1607 | and the mountain always leads." |
-