olivierp has asked for the wisdom of the Perl Monks concerning the following question:
This works fine for filenames containing ASCII / Latin1 characters, but -s "$file" returns undef, when the filename contains Unicode chars (japanese, ukrainian, thai, etc...) which is not really useful...@filenames = grep (!/^\.\.?$/ , readdir (DIR)); closedir DIR; foreach (@filenames){ $file = "$dir$_"; $size = -s "$file"; $h{$file} = $size; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32 Unicode filenames: how to get their size ?
by PodMaster (Abbot) on Aug 19, 2004 at 09:56 UTC | |
by olivierp (Hermit) on Aug 20, 2004 at 11:49 UTC | |
|
Re: Win32 Unicode filenames: how to get their size ?
by revdiablo (Prior) on Aug 19, 2004 at 16:47 UTC |