in reply to Re^3: Perl code to format the text file by inserting tag in blank line
in thread Perl code to format the text file by inserting tag in blank line

Thank you for your suggestions. But i'm afraid i cannot use the modules suggested as there is a limitation on tool which further processes this code.For security reasons i am unable to reveal tool name.Hence simple PERL code is the solution. Thanks for your understanding

  • Comment on Re^4: Perl code to format the text file by inserting tag in blank line

Replies are listed 'Best First'.
Re^5: Perl code to format the text file by inserting tag in blank line
by afoken (Chancellor) on Feb 12, 2020 at 06:32 UTC
    [...] i cannot use the modules [...] For security reasons [...]

    If you want security, you don't reinvent the wheel, but instead use modules. See Re^3: My promiscous singleton, Re^4: CSV file with double quotes and many other postings.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re^5: Perl code to format the text file by inserting tag in blank line
by AnomalousMonk (Archbishop) on Feb 12, 2020 at 06:44 UTC

    So your input file (and apparently also your output file) are XML, but you can't use standard Perl XML modules to process your data. I can't say I understand all this, but it seems as if your security situation is such that you cannot say anything that would help clarify your circumstances. That's the way it is sometimes. You have my sympathy.


    Give a man a fish:  <%-{-{-{-<

      yes exactly...any help would be much appreciated

        I'm sorry, no help can be provided, as you cannot accept any code