"That's because your code is missing the two key ingredients:"
No, it's not.
"use utf8;"
Neither my code nor the code the OP posted requires the utf8 pragma. See the following, from that documention, which it shows in bold-faced type:
"Do not use this pragma for anything else than telling Perl that your script is written in UTF-8."
"my $scandir = 'something with umlauts it it';"
The OP does not say that $scandir contains umlauts. The only mention of umlauts by the OP is:
"Given is a file which contains german umlauts in its name (e.g. 'Fehler für Projekt x.xls')"
He says "file" and provides what would be resonable to assume is an MS Excel spreadsheet file. There's nothing about any directory whose name contains umlauts.
-- Ken
In reply to Re^3: treat files with umlauts (utf)
by kcott
in thread treat files with umlauts (utf)
by mike.scharnow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |