... 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 reply to Re^4: parsing a multi-line pattern and replacing
by Anonymous Monk
in thread parsing a multi-line pattern and replacing
by ghosh123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |