my $string = "aabbbcc"; my @array = split('',$string); my %hash = (); foreach (@array) { print "dup found!\n" if (exists($hash{$_})); $hash{$_}++; }
In reply to Re: Recognizing duplicates
by perlfan
in thread Recognizing duplicates
by b4swine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |