in reply to Re^2: 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

Yes, even you can use CPAN

You may like to explain why you can't use cpan modules if that is indeed the case.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
  • Comment on Re^3: Perl code to format the text file by inserting tag in blank line

Replies are listed 'Best First'.
Re^4: Perl code to format the text file by inserting tag in blank line
by DAN0207 (Acolyte) on Feb 12, 2020 at 06:22 UTC

    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

      [...] 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". ;-)

      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