Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Check if a variable contains only one letter?

by Anonymous Monk
on May 02, 2014 at 14:04 UTC ( [id://1084788]=note: print w/replies, xml ) Need Help??


in reply to Check if a variable contains only one letter?

Is that the solution or it can be done easier?
$string="UUUUUUUUUUUUUUUUUU"; if ($string=~/U+/ && $string =~ m/[^ABCDEFGHIJKLMNOPQRSTVWXYZ]/){ print "FOUND\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1084788]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found