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"; }
In reply to Re^2: Print about all elements of the array.
by Anonymous Monk
in thread Print about all elements of the array.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |