Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Finding Oldest File in a Directory

by sk (Curate)
on Oct 04, 2005 at 21:09 UTC ( [id://497409]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
            $oldestfile = $mtime;
        }
    }
    
  2. or download this
     readdir DIRHANDLE
    Returns the next directory entry for a directory opened by "opendir". 
    +If used in list context, returns all the rest of the entries in the d
    +irectory.  If there are no more entries, returns an undefined value i
    +n scalar context or a null list in list context.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://497409]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-25 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found