in reply to Re: Sorting a slurped file by a date field
in thread Sorting a slurped file by a date field
I take it one step further by separating this one array into two arrays based off of $status.open (LINKS, "$linksQuery") || die ("Can't open $linksQuery: $!"); my @links = <LINKS>; close (LINKS);
After I have these two arrays I want to sort each in most recent to latest order. I used the other response to my post, which did sort both arrays but "12/13/02 09:42:51 CST" happens to appear before 12/05/02 13:19:50 CST when it should be the other way around.for (@links) { chomp($_); my ($status, $reference, $project, $created) = split(/\t/, $_); if ($status eq "Completed") { push(@complete, $_); } else { push(@progress, $_); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Sorting a slurped file by a date field
by ysth (Canon) on Feb 04, 2004 at 01:42 UTC | |
by bionicle32 (Novice) on Feb 04, 2004 at 21:25 UTC |