|P is for Practical|
Re^2: Renaming non-ascii filesby Anonymous Monk
|on Jun 03, 2005 at 11:47 UTC ( #463227=note: print w/replies, xml )||Need Help??|
I see where you are going, but it will not work.
The reason I did not use:
is Perl does not see the non-ascii characters at all. It sees only question marks for filenames. Even though in Windows the filenames appear in a native lanuage like Japanese or Arabic. Example: ??? ?? ???.txt is what Perl sees as a non-ascii filename. Therefore, I picked up non-ascii files using:
and it worked...sometimes. The reason it does not work all the time is that if a file has exactly the same number of question marks perl considers it a duplicate and will not rename it.
I need a method to make Perl, when reading a directory or globbing(i've tried globbing many of times, no go) to see these filenames as they are, not as question marks.
thank for your assistance
In Section Seekers of Perl Wisdom