I'm surprised noone posted this yet.
sub has_alpha { local $_ = shift; my %c; @c{ unpack "(A1)*", $_ } = ( 1 ) x length; $_ && return 1 for @c{ 'A'..'Z', 'a'..'z' }; return; }
Makeshifts last the longest.
In reply to Re: Challenge - Creative Way To Detect Alpha Characters
by Aristotle
in thread Challenge - Creative Way To Detect Alpha Characters
by Limbic~Region
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |