in reply to testing number of occurrences in a word
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)
|
|---|