No such thing as a small change | |
PerlMonks |
Re: This should be easy: counting letters in a stringby gube (Parson) |
on Jan 31, 2006 at 12:01 UTC ( [id://526723]=note: print w/replies, xml ) | Need Help?? |
map { print $count = $string =~ s/$_//g } @letters;
In Section
Seekers of Perl Wisdom
|
|