in reply to Testing for unprintable characters

How 'bout
/[^[:print:]]/;
? (perlre)