The sample data you give looks like a fragment of XML. If that is the case it is strongly advised that you use a suitable module (XML::Twig, XML::LibXML, ...) to do the heavy lifting for you.
In reply to Re: Perl code to format the text file by inserting tag in blank line
by GrandFather
in thread Perl code to format the text file by inserting tag in blank line
by DAN0207
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |