use utf8; my $scandir = 'something with umlauts it it'; # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # ...is this string literal not part of the source?