See POSIX isprint function.use POSIX; for ("foo; is ok", "foo\x3") { if (/[^[:print:]]/) { print "Contains unprintables\n"; } else { print "$_ is safe\n"; } }
In reply to Re: Testing for unprintable characters
by Roy Johnson
in thread Testing for unprintable characters
by Moron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |