There is a simpler way - count them with tr///,
That's usable as a logical element, too.$_ = 'a[bdy]dfjaPÃ?sdafÃ?'; print tr/\x0a\x20-\x7d//c, "unwanted characters in the string\n"; __END__ 2 unwanted characters in the string
After Compline,
Zaxo
In reply to Re: Finding out non ASCII Characters in the text
by Zaxo
in thread Finding out non ASCII Characters in the text
by rsriram
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |