This is both perl-specific and slow, but I'll just show it:
sub isalpha { no warnings "numeric"; my($p) = @_; 0==++$p; } sub hasalpha { my($s) = @_; isalpha(substr($s, 0, 1, "")) and return 1 while length($s); return; };
In reply to Re: Challenge - Creative Way To Detect Alpha Characters
by ambrus
in thread Challenge - Creative Way To Detect Alpha Characters
by Limbic~Region
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |