artperl has asked for the wisdom of the Perl Monks concerning the following question:
hi,
would like to seek your advise for easiest way to alter a file using perl.
say i have below lines in a file:
A ZZZ YYY XXX B A B A FFF SSS GGG B A B A WWW EEE TTT B
My objective is to remove lines A & B if there is nothing in between them.
thanks much!...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: file alteration
by choroba (Cardinal) on Apr 14, 2015 at 06:31 UTC | |
|
Re: file alteration
by davido (Cardinal) on Apr 14, 2015 at 04:58 UTC | |
|
Re: file alteration
by GrandFather (Saint) on Apr 14, 2015 at 03:54 UTC | |
by Anonymous Monk on Apr 14, 2015 at 05:36 UTC | |
by hippo (Archbishop) on Apr 14, 2015 at 13:05 UTC | |
by davido (Cardinal) on Apr 15, 2015 at 02:18 UTC | |
|
Re: file alteration
by jeffa (Bishop) on Apr 14, 2015 at 17:14 UTC | |
|
Re: file alteration
by crusty_collins (Friar) on Apr 14, 2015 at 13:58 UTC | |
|
Re: file alteration
by FreeBeerReekingMonk (Deacon) on Apr 14, 2015 at 17:50 UTC |