Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Oldest file using -M

by ehdonhon (Curate)
on Apr 27, 2004 at 14:18 UTC ( #348495=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      $^T = time();
      my $fileage = -M $filename;
    
  2. or download this
      my ($oldest_file) =  sort { -M $b <=> -M $a } @filenames;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2021-03-05 23:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (115 votes). Check out past polls.

    Notices?