Syntactic Confectionery Delight | |
PerlMonks |
Re^2: UTF-8 lexicographic string sortby rdiez (Acolyte) |
on Apr 23, 2020 at 12:02 UTC ( [id://11115941]=note: print w/replies, xml ) | Need Help?? |
I am not sure that your code is correct. Let us look at this snippet your suggested: decode('UTF-8', $File::Find::name) Let us look at the documentation for Encode::decode: This function returns the string that results from decoding the scalar value OCTETS, assumed to be a sequence of octets in ENCODING, into Perl's internal form. Your code is therefore assuming that $File::Find::name is in UTF-8, but this may not be correct.
In Section
Seekers of Perl Wisdom
|
|