Or if the question you want to answer is "Is there a character that is repeated within the string?" then you can:
print "'$1' repeated\n" if "12345617890" =~ /(.).*?\1/;
Prints:
'1' repeated
In reply to Re: Unique character in a string?
by GrandFather
in thread Unique character in a string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |