while () { while ( m/([^\x09\x0A\x20-\x7E])/g ) { printf "Found chr %d on line %d at pos %d\n", ord($1), $., pos($_); } }