in reply to Re^3: parsing a multi-line pattern and replacing
in thread parsing a multi-line pattern and replacing
... the inputfile is a XML file. ... I could do it myself.
You could, but why not use one of the many good modules for handling XML available on CPAN? XML::Simple, XML::LibXML, XML::Twig... your code could be reduced to a few lines.
In Section
Seekers of Perl Wisdom