my $max_date = 0; $_ > $max_date and $max_date = $_ for values @array_data;