[Removed beginners-cgi list; this ha nothing to do with CGIs.]
At 04:24 PM 8/6/01 +0930, Daniel Falkenberg wrote:
>Does any one know the best way of sortig by YEAR MONTH DAY?
>
>I would like my script to dispalay 20010327 which is YEAR 2001 MONTH 10 and
>DAY 27
A little experimentation should co
If your data is already in the format shown below as yearmonthday, then a
standard sort would do just fine:
@test =(20010327, 20001113, 20011225, 19991231, 20100115);
foreach (sort @test)
{
print "$_\n";
}
Output will be:
19991231
20010327
20011225
20100115
On the other hand, you may want a
At 11:41 AM 8/6/01 -0400, Chris Rogers wrote:
>If your data is already in the format shown below as yearmonthday, then a
>standard sort would do just fine:
>
>@test =(20010327, 20001113, 20011225, 19991231, 20100115);
>foreach (sort @test)
Doh, I should have realized that this data also sorts asc
List,
Please accept my sicerest apologies for not explaining myself correctly in
my last post (RE: SORTING BY DATE).
What I really need to be able to do is have my script display the date as
YEAR () MONTH (xx) DAY (xx)
For egsamle todays date would be displayed as 20010807
At the moment
from the raw values
supplied by localtime before you do this.
Good luck!
Matt
-Original Message-
From: Daniel Falkenberg [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 5:05 PM
To: Beginners (E-mail)
Subject: Explaining myself correctly RE: SORTING BY DATE
List,
Please accept my sic