if ( $word =~ /([\Q$word\E])(?=.*\1)/ ) { print "$word is NOT an isogram.\n"; } else { print "$word is an isogram.\n"; }
In reply to Re: testing number of occurrences in a word
by jwkrahn
in thread testing number of occurrences in a word
by jsmith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |