Michael G Schwern <[EMAIL PROTECTED]> wrote:

> Hmmm, there seems to be a little problem:
> 
> $ perl -wle 'print "\n" =~ /[[:cntrl:]]/ ? "Yep" : "Nope"'
> Yep
> $ perl -wle 'print "\n" =~ /[[:print:]]/ ? "Yep" : "Nope"'
> Yep
> $ perl -Mutf8 -wle 'print "\n" =~ /[[:print:]]/ ? "Yep" :
> "Nope"' Nope

I missed that when I was testing.  There's the same problem 
with "\t", "\f", and "\r" (ASCII 9, 12, and 13).  Perl seems to 
think that anything that matches \s is printable, rather than 
just space.

-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC

Reply via email to