in reply to how to next line after the pattern in perl

All a bit late now, but another way to do it could be to buffer the reading in of the file ( a la Re: Grabbing lines three-by-three from a file ). This way you could read lines in pairs, testing the first and printing the second. Not that the solutions above need improving, but TIMTOWTDI and all that...

Just a something something...
  • Comment on Re: how to next line after the pattern in perl