in reply to The Dates Sorting!

There are a couple of issues, here. The first is that you always want to use

use warnings; use strict;

Next, you're using a scalar as the argument to your 'sort' routine. 'sort' is going to want an array and it'll return the sorted array.

Next, you should consider using Date::Simple or (for more complex stuff) DateTime. To do this, you first install the module, then something like:

use DateTime; my @dates; while(<...>) { my $date = DateTime->new(...); push @dates, $date; } my @sorted = sort @dates;

Hope that helps!

Update: fixed a typo

--
Wade