in reply to Re^13: search and replace strings in different files in a directory
in thread search and replace strings in different files in a directory
Dear Monks
Sorry for pestering you once again with my noob questions. I changed the script according to your recommendations. So far no more BOM errors and everything seems to be working as planned.
However, I got the following error message the meaning of which I am not quite sure of. Maybe one of you could shed some light on this (I used Carp::Always, as one of you suggested). I had to anonymise the code for I guess you know why....
Error opendir on 'Z:/123/xyz/xyz/xyz_xyz_xyz_/01_abc': No such file or directory at C:/strawberry/perl/site/lib/Path/Tiny.pm +line 1490. Path::Tiny::Error::throw("Path::Tiny::Error", "opendir", "Z:/2014/xyz/ +xyz/xyz_xyz_xyz_/01_abc"") called at C:/strawberry/perl/site/lib/Path/Tiny.pm line 126 Path::Tiny::_throw(Path::Tiny=ARRAY(0x2774f74), "opendir") called at C +:/strawberry/perl/site/lib/Path/Tiny.pm line 532 Path::Tiny::children(Path::Tiny=ARRAY(0x2774f74), qr(\.xml$)u) called +at script.pl line 59 main::RetrieveAndBackupXML("Z:/123/xyz/xyz/xyz_xyz_xyz_/01_abc\\0"...) + called at script.pl line 31 main::Main() called at script.pl line 20
In my opinion, the error is telling me that neither the folder nor the files exist (well, you cannot access the files if you cannot access the folder.
Question is why is the programm throwing this error message, the folders do exist as indicated by the path names I am reading out.
Is it problem if I access a network-drive? Would that be another building block that would bloat the script and provide with me with yet another topic to read about?
A penny for your thoughts.
Kind regards
C
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^15: search and replace strings in different files in a directory
by Anonymous Monk on Sep 03, 2014 at 01:19 UTC | |
by PitifulProgrammer (Acolyte) on Sep 03, 2014 at 07:14 UTC | |
by Anonymous Monk on Sep 03, 2014 at 08:14 UTC | |
by PitifulProgrammer (Acolyte) on Sep 03, 2014 at 12:11 UTC | |
by Anonymous Monk on Sep 03, 2014 at 18:06 UTC | |
|