Sorry 'bout the '\' with '$date' -- it was an artifact of my flailing around with quotes, slashes, and other things I thought (prayed) might help based on the error messages.
I made the post too short but didn't want to explain to the brethren something that was "obvious." Displaying my own skill was accomplished with the question.
Thank you for the time and thought which went into each answer. It's somewhat embarrassing to note that I have owned "Learning Perl" for about 10 years, and "Perl Cookbook" and "Advanced Perl Programming" a bit less time. I also have books on database design theory, MySQL, PHP, and Apache. And Windows Server and Linux administration as well as network wiring and a few other topics. My excuse is that I sometimes get a whole helf-hour without interruption and, as a result, have re-read the same few pages countless times.
I find solutions or work-arounds, not having the time for properly studying a topic. (College was nearly 4 decades ago, and the PC hadn't yet been imagined. NOW I wish that i'd been (smart enough to be) in EE instead of liberal arts.)
mr_mischief: I will try to flail less and apply your suggestions.
Craig
Results: Adding the (target) file name and removing my print-the-variable test and it worked perfecly! The text strings were correctly modified. No flailing required.
- Apr 10 - fixt formatting.
In reply to Re^2: Regexp substitution w/ variable value (again) - Thanks!
by Craig_B
in thread Regexp substitution w/ variable value (again)
by Craig_B
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |