in reply to Re^3: treat files with umlauts (utf)
in thread treat files with umlauts (utf)
The OP does not say that $scandir contains umlauts.
Neither my code nor the code the OP posted requires the utf8 pragma.True, but the OP did mention "a SLES Linux with UTF-8 support switched on", and, strictly speaking, use utf8 is not the only means of getting $scandir flagged as UTF-8:
binmode(STDIN, ':encoding(UTF-8)'); chomp(my $scandir = <STDIN>); #OR $ perl -CS -e 'chomp(my $scandir = <STDIN>); ...' #OR $ perl -CA -e 'my $scandir = shift; ...' <dir>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: treat files with umlauts (utf)
by kcott (Archbishop) on Apr 01, 2014 at 13:25 UTC | |
by hazylife (Monk) on Apr 01, 2014 at 14:00 UTC | |
by kcott (Archbishop) on Apr 02, 2014 at 01:30 UTC | |
by hazylife (Monk) on Apr 02, 2014 at 10:54 UTC | |
by mike.scharnow (Initiate) on Apr 07, 2014 at 08:25 UTC |