Please, critique this.
You say you want to "count letters in a string" but you are counting all characters.
$letters{$1}++ while $seq =~ /([[:alpha:]])/g;
You shouldn't use prototypes. And besides you are just copying the contents of the hash anyway which you could do more simply as:
sub sort_and_print_hash_keys { my %hash = @_;
In reply to Re: Entering the land of Perl
by jwkrahn
in thread Entering the land of Perl
by manbroski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |