Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Check if a variable contains only one letter?

by LanX (Saint)
on May 02, 2014 at 14:16 UTC ( [id://1084793]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<106> $str='A B C'
     => "A B C"
    ...
    
      DB<108> scalar @matches
     => 3
    
  2. or download this
      DB<115> $str='A B C'
     => "A B C"
    ...
    
      DB<118> $str !~ /[A-Z].*[A-Z]/
     => 1
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-24 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found