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 19:52 UTC