in reply to Testing for unprintable characters

You could use the POSIX [:print:] character class. Or, rather, its inverse.

if ($string =~ /[^[:print:]]/) { print "Found unprintable characters\n"; }
--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg