in reply to Re^2: glob a folder of images, and open text doc, find the matches and move the images.
in thread glob a folder of images, and open text doc, find the matches and move the images.
the output of your code is simlar to what i saw:
That's unlikely, since my code doesn't contain any prints. Not even your original code contains the word and that's showing up in this output. And I really don't see which code would cause the pathname to apparently be repeated six times in what appears to be the same string. Use Data::Dumper or Data::Dump for debug output like I suggested and post the actual code you're running, and maybe we'll have a chance to help. See How do I post a question effectively? and I know what I mean. Why don't you? in addition to Short, Self-Contained, Correct Example.
are you saying that i need to use /\Q$row/because of the paths?
Not quite, the \Q escapes metacharacters in $row that would otherwise be interpreted as regex characters. Anyway, that's not the only suggestion I made, what about the others?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: glob a folder of images, and open text doc, find the matches and move the images.
by flieckster (Scribe) on Feb 10, 2020 at 17:44 UTC | |
by haukex (Archbishop) on Feb 10, 2020 at 17:48 UTC |