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

SURE !!! Yes I just got the code :D. And it is working. I commented the unwanted section. One Last help, how to get rid of from extra characters from the output? Do I have to parse again to delete the extra characters?

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

Replies are listed 'Best First'.
Re^5: 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 12:05 UTC

    Hello again anirbanphys,

    I do not know what extra characters from the output you are referring? If you mean the single quotes '' in the output it simply how Data::Dumper prints the output. If you want you can use alternatively:

    use feature 'say'; say $_ for @lines;

    Otherwise give me more information regarding the characters you want to remove. BR / Thanos

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