in reply to Re^2: Sorting/Cleansing a Duplicate File
in thread Sorting/Cleansing a Duplicate File
and for output intended for the console window I useopen (my $fh, '<:encoding(Windows-1252)', $fname) or die "cannot open +$fname: $!";
(if your data really is UTF-8, then "encoding(utf-8)" should do the right thingbinmode STDOUT, ':encoding(cp437)'; # or cp850
|
|---|