On Sat, Nov 17, 2001 at 09:24:24AM -0500, Keith C. Ivey wrote: > Philip Newton <[EMAIL PROTECTED]> wrote: > > > That should be \x20-\x7E, I think. "\x7F" is a control character > > (DEL, "\c?"). > > A control character, perhaps, but apparently not a [[:cntrl:]] > character. But not printable, at any rate.
Another case of utf8 vs not. $ perl -Mutf8 -wle 'print "\x7F" =~ /[[:cntrl:]]/ ? "Yes" : "No"' Yes $ perl -wle 'print "\x7F" =~ /[[:cntrl:]]/ ? "Yes" : "No"' No Which again, is wrong is [:cntrl:] is supposed to be emulating POSIX::iscntrol. -- Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One "You killed my fish?" "Why does that pickle you?" http://sluggy.com/d/010204.html
