chromatic/modern_perl_book

File mode symbol reversed in Unicode, IO Layers, and File Modes

Closed this issue · 1 comments

http://modernperlbooks.com/books/modern_perl_2014/09-managing-perl-programs.html#SW5wdXRhbmRPdXRwdXQ

open my $in_fh,  '>:encoding(UTF-8)', $infile;

should be

open my $in_fh,  '<:encoding(UTF-8)', $infile;

similar issue with

open my $out_fh, '<:encoding(UTF-8)', $outfile;

@chromatic could you close this one, since the issue is fixed in #239