in reply to Re^3: How to determine if string contains non-ASCII characters ?
in thread How to determine if string contains non-ASCII characters ?

That's because you reversed the conditions - if it contains bytes from the range > 127, it's not ASCII.

Update: I'd strongly recommend to use at least perl-5.8.2 for any text processing that involves non-ASCII characters. It's a real pain with 5.6.*.

Perl 6 projects - links to (nearly) everything that is Perl 6.
  • Comment on Re^4: How to determine if string contains non-ASCII characters ?