Wenn man sich perdoc zu
function open durchliest hat man bezüglich der Kodierung keine Probleme mehr…!
Quote…You may (and usually should) use the three-argument form of open to specify I/O layers (sometimes referred to as "disciplines") to apply to the handle that affect how the input and output are processed (see open and PerlIO for more details). For example:
open(my $fh, "<:encoding(UTF-8)", "filename")
|| die "can't open UTF-8 encoded filename: $!";
opens the UTF8-encoded file containing Unicode characters;…
Auf alle Fälle, vielen Dank für die Hilfe!