Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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
Domain Nodelet?
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 avoiding work at the Monastery: (5)
As of 2022-05-27 13:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (95 votes). Check out past polls.

    Notices?