# to repeat Meraxes foreach (@array) { $seen_hash{$_}++; } # then just do a print for each key in the %seen_hash hash print "Content-type: text/html\n\n"; # viewable in browser foreach (keys %seen_hash) { print $seen_hash{$_}; }
In reply to Re: How can I count and display unique items in an array?
by emilford
in thread How can I count and display unique items in an array? (was: array counting)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |