more useful options | |
PerlMonks |
Re: Challenge - Creative Way To Detect Alpha Charactersby amt (Monk) |
on Sep 13, 2004 at 17:46 UTC ( [id://390619]=note: print w/replies, xml ) | Need Help?? |
This link will describe to you how to switch between ASCII characters and their corresponding numerical value. Perl Cookbook Recipe 1.4. Converting Between ASCII Characters and Values You can then step through the unpack'd string with a foreach loop to compare that numerical value with the values for alphabetic characters, A-Z(65-90) and a-z(97-122).
amt
Steve_p - Removed link to copyrighted material
In Section
Seekers of Perl Wisdom
|
|