Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^8: How to add a new line after three or four lines from a pattern after getting that pattern

by anirbanphys (Beadle)
on Apr 03, 2019 at 13:44 UTC ( [id://1232094]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to add a new line after three or four lines from a pattern after getting that pattern
in thread How to add a new line after three or four lines from a pattern after getting that pattern

Hello thanos1983 ,

It is great to see that continuously you are helping me to improve the skill in perl coding. Yes I added your suggested code in the actual code.

Thank you for your help :)

Thanks you and best regards

Anirban

  • Comment on Re^8: How to add a new line after three or four lines from a pattern after getting that pattern

Replies are listed 'Best First'.
Re^9: How to add a new line after three or four lines from a pattern after getting that pattern
by thanos1983 (Parson) on Apr 03, 2019 at 14:09 UTC

    Hello again anirbanphys,

    I have added the last update tha contains the full solution. One minor thing that I added is on the string that you add to the array. I noticed from the desired output sample 'default_operating_conditions : "AB0.5v45c" ;' should be '  default_operating_conditions : "AB0.5v45c" ;' I guess? I simply added two white spaces (nothing special).

    If see the updated code if not do not modify it :)

    BR / Thanos

    Seeking for Perl wisdom...on the process of learning...not there...yet!
      Hello thanos1983,

      Please do not worry, I have managed it at the beginning :). It is good to see that you are an perfectionist :).

      Thanks and Best Regards

      Anirban

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-20 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found