also instead of
opendir my $dh, '/some/dir' or die $!;it's better to have
my $dir = '/some/dir'; # unicode # get it as fs representation my $fs_dir = Encode::encode( locale_fs => $dir ); opendir my $dh, $fs_dir or die $!;
In reply to Re^3: UTF-8 and readdir, etc.
by Anonymous Monk
in thread UTF-8 and readdir, etc.
by jrw005
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |