I am trying to do a complex multi-line substitution while parsing a file. My data is in the form of
. I've got the proper matching statement and the processing of the data figured out (put it in a subroutine), but now I want to apply it to all matches. Can I do something like
?
Code:
"KEYWORD identifier (multiline\ndata) (more data);"
Code:
s/<expr>/procedure($+)/mg;