my %letters;
$letters{$_}++ for grep /\w/, split //, $input;
That would be simpler as:
my %letters;
$letters{$_}++ for $input =~ /\w/g;
In reply to Re^6: Golf: Improve this guy's fail . . . please!
by jwkrahn
in thread Golf: Improve this guy's fail . . . please!
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |