Hi there Monks!
I have a report that prints a list of files showing its age using:
my $datetime = ctime(stat("files")->mtime);
But this list is not in descending or ascending order, the dates are all over the place and I would like to do that with this list that looks like this:
file7 - From: Sun Jan 30 08:20:52 2011
file4 - From: Tue Feb 1 19:07:46 2011
file6 - From: Sun Jan 30 09:09:43 2011
file0 - From: Fri Dec 21 07:25:10 2010
file2 - From: Sat Jan 22 18:16:46 2011
filef - From: Wed Feb 2 16:12:59 2011
file13 - From: Mon Jan 31 13:46:37 2011
file6ff - From: Tue Feb 1 07:27:06 2011
file6 - From: Wed Feb 2 07:28:23 2010
filee - From: Sat Jan 22 11:27:49 2011
filec - From: Sat Jan 22 16:52:42 2011
file2b - From: Wed Feb 2 14:28:56 2011
Has anyone here done anything like that?
Thanks for looking!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.