http://qs321.pair.com?node_id=1083787


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.

  • Comment on Re^4: parsing a multi-line pattern and replacing