Thank you monks!

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.