- or download this
$H{$_}++ for split '', $str;
if (grep $_, @H{a..z,A..Z}) {
...
}
- or download this
$A[ord $_]++ for split '', $str;
if (grep $_, @A[map ord, a..z,A..Z]) {
...
}
- or download this
$H{$_}++ for split '', $str;
if (grep $H{$_}, a..z, A..Z) {
...
}
- or download this
$A[ord $_]++ for split '', $str;
if (grep $A[ord $_], a..z, A..Z) {
...
}
- or download this
use POSIX;
if ( grep { isalpha $_ } split '', $str ) {
...
}