http://qs321.pair.com?node_id=390612

Limbic~Region has asked for the wisdom of the Perl Monks concerning the following question:

All,
Today I happened to be in a long boring meeting to discuss the process flow of a project. The presentation was accompanied by some really pitiful code. Pitiful in the sense that the language was not rich, not in the sense that it was bad code. Indeed, there were quite a few creative solutions given the limits of the language (the || operator is used to concatenate strings).

One such problem was to detect if there was any alpha [a-zA-Z] characters in a string where the language didn't support regexes. The equivalent solution using Perl syntax is:

if ( lc $foo eq uc $foo ) { }
I came up with a few alternatives (walking the string) but they all seemed "wrong" given the current solution.

Challenge:
What is the most creative solution for detecting the presence of alpha chars [a-zA-Z] in a string without the use of regexes that you can come up with?

Cheers - L~R