I have a line I want to parse and substitute.
Example:
$line contains ...
__________________
"the great red fox jumped <%anything%> the fence."
__________________
when read into my subroutine.
I am trying to create some code that will parse the "anything" out of the middle of the <%... and ... %>. (I need this part because I want this extraction so I can take some different actions upon the "anything".)
Then I want to substitute the <%anything%> with $mycontent.
Example:
$mycontent = "quickly over";
Sooooo, I would now want $line after all this code to contain...
$line contains ...
__________________
"the great red fox jumped quickly over the fence."
__________________
Any help on this would be appreciated
Thanks
TimRyan
Example:
$line contains ...
__________________
"the great red fox jumped <%anything%> the fence."
__________________
when read into my subroutine.
I am trying to create some code that will parse the "anything" out of the middle of the <%... and ... %>. (I need this part because I want this extraction so I can take some different actions upon the "anything".)
Then I want to substitute the <%anything%> with $mycontent.
Example:
$mycontent = "quickly over";
Sooooo, I would now want $line after all this code to contain...
$line contains ...
__________________
"the great red fox jumped quickly over the fence."
__________________
Any help on this would be appreciated
Thanks
TimRyan