Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
TheEnigma,
Do you want to do something only if there are no alpha characters Or the reciprocal - do something only if there are alpha chars. The trick is to figure it out creatively without using regular expressions. As you can see, assuming for a second plain jane ASCII, the only way lc $foo eq uc $foo can be true is if there are no alpha ([a-zA-Z]) characters in $foo. Cheers - L~R In reply to Re^2: Challenge - Creative Way To Detect Alpha Characters
by Limbic~Region
|
|