|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: This should be easy: counting letters in a stringby gube (Parson) |
| on Jan 31, 2006 at 07:01 UTC ( [id://526723]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
map { print $count = $string =~ s/$_//g } @letters;
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||