You need to decode the bytes into characters before treating them as characters:
$ perl -e'print "\xc2\xa0"' | perl -le' binmode STDIN, ":encoding(UTF-8)"; chomp( $_ = <STDIN> ); print /\s/ ? "space" : "no space"; ' space
In reply to Re: Something strange in the world or Regexes
by ikegami
in thread Something strange in the world or Regexes
by mrguy123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |