That doesn't work with strings internally encoded as UTF8 before 5.10.0 (and not at all before 5.8.0).
If you're working with arbitrary characters, if you don't to mess with utf8::downgrade, or if you are worried about backwards compatibility, you can use the following instead:
@vals = $in =~ /(..)/sg;
In reply to Re^2: Difficulties with split
by ikegami
in thread Difficulties with split
by transiency
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |