in reply to Re: need helping sorting
in thread need helping sorting
got this output:print "Content-type: text/html\n\n"; opendir(FILES,"$SAVE_DIRECTORY"); #@allfiles = sort(grep(!/^\.\.?$/,readdir(FILES))); @allfiles = sort { (stat $a)[9] <=> (stat $b)[9] } (grep(!/^\.\.? +$/,readdir(FILES))); closedir(FILES); foreach$file(@allfiles) { #print "<a href=\"/apply/$file\">$file</a><br>\n"; print "<a href=\"/apply/$file\">$file</a>" . (stat $file)[9] . " +<br>\n"; } exit;
which is not sorted by date...also, not sure what the #'s on the last 2 lines are... any more ideas??resume_.1268.1 tm06b.jpg coolurls.jpg r.xls cb-appt.htm test.html982617983 aaa.txt982624016
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: need helping sorting
by Hot Pastrami (Monk) on Mar 15, 2001 at 02:47 UTC | |
by bbfu (Curate) on Mar 15, 2001 at 03:57 UTC |