Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Challenge - Creative Way To Detect Alpha Characters

by Pragma (Scribe)
on Sep 13, 2004 at 21:34 UTC ( [id://390667]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $H{$_}++ for split '', $str;
    if (grep $_, @H{a..z,A..Z}) { 
      ...
    }
    
  2. or download this
    $A[ord $_]++ for split '', $str;
    if (grep $_, @A[map ord, a..z,A..Z]) {
      ...
    }
    
  3. or download this
    $H{$_}++ for split '', $str;
    if (grep $H{$_}, a..z, A..Z) { 
      ...
    }
    
  4. or download this
    $A[ord $_]++ for split '', $str;
    if (grep $A[ord $_], a..z, A..Z) {
      ...
    }
    
  5. or download this
    use POSIX;
    if ( grep { isalpha $_ } split '', $str ) {
      ...
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-23 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found