in reply to Re^2: Odd problems with UTF-8, regexps, and newer Perl versions
in thread Odd problems with UTF-8, regexps, and newer Perl versions

I see, "use encoding" also sets binmode on STDIN and STDOUT, so that while just using 'use' I need to explicitly add the binmode.

You can also use the open pragma for that, and also for future calls to open.

Perl 6 - links to (nearly) everything that is Perl 6.
  • Comment on Re^3: Odd problems with UTF-8, regexps, and newer Perl versions