No such thing as a small change | |
PerlMonks |
Insert lines into specific stanza lineby xjlittle (Beadle) |
on Aug 13, 2010 at 18:36 UTC ( [id://854973]=perlquestion: print w/replies, xml ) | Need Help?? |
xjlittle has asked for the wisdom of the Perl Monks concerning the following question: Hello knowledgeable monks I am seeking your wisdom on how to insert lines into a specific place in a stanza. The stanza is as follows:
I would like to insert the code either after sl2 or just before the closing stanza tag. Either way is usable, whichever is simpler. (There could be more stanza lines after sl2. This is just an example.) The code that I am using to locate the stanza that I want to change is as follows:
Thank you for your wisdom in this matter j
Back to
Seekers of Perl Wisdom
|
|