Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: READDIR - Sort by Time?

by fundflow (Chaplain)
on Sep 24, 2002 at 14:04 UTC ( [id://200369]=note: print w/replies, xml ) Need Help??


in reply to READDIR - Sort by Time?

Instead of readdir it is possible to use <*>

Here is a snippet:

my @e = sort { (stat($a))[9] <=> (stat($b))[9] } <*> ;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found