andalou has asked for the wisdom of the Perl Monks concerning the following question:
I'm using perl 5.12.4 on windows 7 and I know that there is a
package,
Wild.pm, which allows to expand wildcard arguments, but it doesn't
work
with files with Chinese characters in their filenames.
Suppose I have the following files:
chair.txt
table.jpg
song自然之歌.txt
and the following perl code:
require Wild; foreach (@ARGV) { print "$_\n"; }
If I supplied *.txt to it, it only outputs chair.txt but not
song自然之歌.txt
Many thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to expand wildcard arguments supplied to programs with perl on windows?
by atcroft (Abbot) on Aug 17, 2012 at 02:02 UTC | |
by andalou (Novice) on Aug 17, 2012 at 02:19 UTC | |
by Corion (Patriarch) on Aug 17, 2012 at 05:25 UTC | |
by Anonymous Monk on Aug 17, 2012 at 06:55 UTC |