in reply to Re: Re: Function over all letters in a string
in thread Function over all letters in a string

Good point. But I think even more dangerous that using only [a-z] (my example, too). I think this should work quite well:
next CHAR if $c =~ /^[[:punct:][:cntrl:][:blank:]]$/;
Add [:digit:] to exclude numbers, too.

Search, Ask, Know