I have a file which contains the following
blah
blah blah
Zebra
Blah blah blah
Blah
Bleh
Dog
Blag
Noblah
Someblah
I want to remove the line segment from Zebra and Dog. Remove only those where Zebra occurs first and Dog occurs later.
How to do this in a perl script ?