in reply to treat files with umlauts (utf)

Here is a quick fix which might work in your case.
use Encode; chdir ($scandir); opendir(DIR,'.'); @files=grep {-f $_} readdir(DIR); # this line tells Perl to interpret the filenames as utf8, # and once done, your umlauts should appear @files = map{ decode('utf8',$_) } @files;

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: treat files with umlauts (utf)
by GotToBTru (Prior) on Apr 07, 2014 at 16:42 UTC

    Where is decode defined?