in reply to Re^26: search and replace strings in different files in a directory
in thread search and replace strings in different files in a directory
Path::Tiny has already done the decode step for you ... see Re^17: search and replace strings in different files in a directory, Re: links in pathnames under Windows 8 and figure it out
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^28: search and replace strings in different files in a directory
by PitifulProgrammer (Acolyte) on Sep 18, 2014 at 08:50 UTC | |
Dear Anonymous Monk(s) I recently went back to the script and was trying to implement the changes you kindly provided. Unfortunately, I did not succeed in resolving the issue with umlauts. I think this is mostly due to the fact that I do not understand what the snippet you referred to really does and how it can be integrated into the present script. This is the snippet from the other post.
I can see in the sample code from the pathnames_under_windows_8 post that path tiny is called, but I have been unable to decipher the code above and how it should affect path::tiny Moreover, I was wondering when you mentioned that Tiny had already done the decoding for me. If so, why are there still problems with umlauts, is that OS-related. I am asking because I figure understanding the underlying problem might give me an insight about how to resolve this. I know I am moving in a more or less theoretical discussion, but it might help. Your insight and comments are much appreciated. Sorry in advance for all the rookie questions (well there is so much to learn and it is fun). Looking forward to your reply. Kind regards C.PS: I guess it helps re-posting the current version of the replace script I am talking about
| [reply] [d/l] [select] |
by PitifulProgrammer (Acolyte) on Oct 01, 2014 at 09:55 UTC | |
Dear Monks I have been busy with other things than coding, but the script is still bugging me. Since I cannot change how people write their pathnames, I think I need to finish this coding project. Well, I have been trying to implement the code that was provided by you via the link to the pathnames_under_windows_8 post. Since I not could see a variable or anything related to path::tiny in the new snippet, I figured I just needed to put it into my code (cf. below). The files in the strangely named folders remain untouched though. Is this topic covered elsewhere, maybe in a book or so, I really would like to understand the code properly but this is rather a conundrum and surely a bit too advanced for my puny perl skills. Thanks a mil for your help Kind regards C
| [reply] [d/l] |