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.
In reply to Re^3: Odd problems with UTF-8, regexps, and newer Perl versions
by moritz
in thread Odd problems with UTF-8, regexps, and newer Perl versions
by ablegrape
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |