in reply to Re: Difficulties with split
in thread Difficulties with split

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;