|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: calling an exe and its input and target filesby NetWallah (Monsignor) |
| on Nov 09, 2012 at 04:50 UTC ( #1003061=note: print w/ replies, xml ) | Need Help?? |
|
Inside "double quotes", the "\" character (which is the 'escape' character) needs to be escaped, using "\\". So, your foreach should read: This shows the mixing of a variable with a path, answering your first question.
For renaming files, you need to separate the pieces of the name, and replace the last piece. Here is a simplified example of replacing a trailing "csv" with "mid":
"By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest." -Confucius
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||