![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: Renaming non-ascii filesby SolidState (Scribe) |
on Jun 01, 2005 at 14:04 UTC ( #462460=note: print w/replies, xml ) | Need Help?? |
Hi Jon12, With that out of the way, I have to say I don't understand exactly the problems you are experiencing. Sometimes you refer to non-ascii files (contents are not ascii?) and sometimes to non-ascii filenames. So which is it?
If this doesn't work, I'd like to hear how does a simple Perl "rename" of an ascii filename in the same directory and with the same permissions work. If a simple ascii filename can be renamed without a problem, try doing "print for (readdir(DIR));" instead of the entire "for" loop in the above program. Look at how Perl treats the non-ascii filenames. Other then that, I can only recommend trying out the File::Rename module from CPAN, psossibly it offers a more robust solution. Good luck :)
In Section
Seekers of Perl Wisdom
|
|