in reply to Testing for unprintable characters
See POSIX isprint function.use POSIX; for ("foo; is ok", "foo\x3") { if (/[^[:print:]]/) { print "Contains unprintables\n"; } else { print "$_ is safe\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Testing for unprintable characters
by davorg (Chancellor) on Nov 15, 2005 at 16:47 UTC |