Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Arrange by creation date?

by einerwitzen (Sexton)
on Jan 17, 2004 at 14:46 UTC ( [id://322066]=perlquestion: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

einerwitzen has asked for the wisdom of the Perl Monks concerning the following question:

in my script I readdir and load all of the sub directory names into an array @topics

I am wondering how I can sort those so when i print them
foreach $f (@topics){ print <<html; <a href="$f">$f</a><br> html }

They are printed out by creation date, newest listed first.

Any special tricks to it? update: right now they are in order, just in reverse. What i need it a way to reverse the order of the array contents. Thanks all!

Replies are listed 'Best First'.
Re: Arrange by creation date?
by Zaxo (Archbishop) on Jan 17, 2004 at 14:52 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://322066]
Approved by DigitalKitty
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.