Update: Added my %h to prevent false negatives. Thanks to Corion.
This'll really impress teach :)
perl -e"my %h;" -nle "++$h{$_}for split'';print'is ',(grep{1<$_}values%h)?'not ':'','an iso +gram'" fred is an isogram bill is not an isogram Terminating on signal SIGINT(2)
In reply to Re: testing number of occurrences in a word
by BrowserUk
in thread testing number of occurrences in a word
by jsmith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |