in reply to Re: Print about all elements of the array.
in thread Print about all elements of the array.

What about this one:

my @ndates = qw( 02/01/2009 01/31/2009 01/01/2009 01/31/2009 02/20/2009 02/20/2009 02/20/2009 02/20/2009 02/01/2009 ); my %counts = (); for (@ndates) { $counts{$_}++; } foreach my $keys (sort keys %counts) { print "\n\n$counts{$keys}= $keys\n"; }