Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Challenge - Creative Way To Detect Alpha Characters

by doowah2004 (Monk)
on Sep 13, 2004 at 21:01 UTC ( [id://390663]=note: print w/replies, xml ) Need Help??


in reply to Challenge - Creative Way To Detect Alpha Characters

I don't know if this will work for all cases, but I was trying to be creative.

foreach (@alpha = split //,$foo) { $_++; if (($_**2 == 0) && ($_ != 1) ){ print "$foo Contains Alpha Characters\n"; last; } }

Cameron

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-20 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found