$string="UUUUUUUUUUUUUUUUUU"; if ($string=~/U+/ && $string =~ m/[^ABCDEFGHIJKLMNOPQRSTVWXYZ]/){ print "FOUND\n"; }
In reply to Re: Check if a variable contains only one letter?
by Anonymous Monk
in thread Check if a variable contains only one letter?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |