Hello
I'm trying to sort an array of dates with milliseconds
In the DataTime.pm file, the subroutine compare has the following statements
foreach my $i ( 0..2 )
{
return $dt1_components[$i] <=> $dt2_components[$i]
if $dt1_components[$i] != $dt2_components[$i]
}
so, my datas have:
dt1_components[0]=733773
dt1_components[0]=55196
dt1_components[0]=631723
and
dt2_components[0]=733773
dt2_components[0]=55196
dt2_components[0]=631776
So, due to those statements, the comparison ends with
dt1_components[0]=dt1_components[1] and the compare subroutine says to
me that the 2 datas are the same, but it's not true, since they differs
in milliseconds
Do I write something wrong in my perl code ?
thank you in advance