just to test my understanding...

[email protected] ("E R") Wed, 17 Oct 2007 11:53:40 -0500
Newsgroups perl.unicode
Message-ID <[email protected]>
is this regex:

$has_wide = ($str =~ m/[^\0-\377]/);

the same as this function?

sub has_wide {
  my $str = shift;
  for my $i (0..length($str)-1) {
    return 1 if (ord(substr($str, $i, 1)) >= 256);
  }
  0;
}

but this doesn't seem to work:

$has_wide = ($str =~ m/[\x{100}-]/);