For me the problem goes away when I comment out the use encoding 'utf8' line (tested with 5.10.1).
Why do you think you need it? — use utf8 already tells Perl that the script source is in UTF-8 (and you can always use binmode to change layers for STDIN and STDOUT).
In reply to Re: Odd problems with UTF-8, regexps, and newer Perl versions
by almut
in thread Odd problems with UTF-8, regexps, and newer Perl versions
by ablegrape
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |