Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by DAN0207 (Acolyte)
on Feb 12, 2020 at 05:47 UTC ( [id://11112832]=note: print w/replies, xml ) Need Help??


in reply to Re: 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 it is XML file format.and it is required to use only PERL code

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

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

    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

      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:  <%-{-{-{-<

Re^3: Perl code to format the text file by inserting tag in blank line
by AnomalousMonk (Archbishop) on Feb 12, 2020 at 05:57 UTC

    By "it is required to use only PERL code", do you mean that you may not use Perl modules such as the ones suggested by GrandFather?


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

Re^3: Perl code to format the text file by inserting tag in blank line
by Jenda (Abbot) on Feb 12, 2020 at 10:35 UTC

    There's Perl (the language) and perl (the "interpreter"). There is no PERL.

    Jenda
    1984 was supposed to be a warning,
    not a manual!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11112832]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-18 00:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found