use Data::Dumper; my $number=1234567812; my @tmp=split('',$number); my %count; foreach(@tmp){ $count{$_}=$count{$_}+1; } print Dumper \%count;
In reply to Re: number of unique characters in a string
by hgolan30
in thread number of unique characters in a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |