but you need to filter out the chars you don't want.my %hist; while(<$fh>){ ++$hist{ $_ } for split //; } for(sort{ $hist{ $b } <=> $hist{ $a } } keys %hist){ print "'$_' => $hist{ $_ }\n"; }
In reply to Re^2: Perl Help
by lidden
in thread Perl Help
by Slug
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |