Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Return newest file

by cchampion (Curate)
on Aug 13, 2003 at 10:36 UTC ( [id://283502]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $last= (sort { -M $b <=> -M $a } <*.log>)[-1];
    
  2. or download this
    $last = (
        map { $_->[0] } 
    ...
        map { [ $_, -M $_ ] } 
        <*.log>
        )[-1];
    

Log In?
Username:
Password:

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

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

    No recent polls found