more useful options | |
PerlMonks |
Re^3: Matching non-ASCII file contents with file name.by Corion (Patriarch) |
on Dec 23, 2022 at 07:16 UTC ( [id://11149042]=note: print w/replies, xml ) | Need Help?? |
Maybe the problem is elsewhere? Because binmode says: To mark FILEHANDLE as UTF-8, use :utf8 or :encoding(UTF-8). :utf8 just marks the data as UTF-8 without further checking, while :encoding(UTF-8) checks the data for actually being valid UTF-8. I read this as that the two should behave identical (except for warnings). Maybe someone else knows where the differences come from.
In Section
Seekers of Perl Wisdom
|
|